Fixes hadoop module for security to work in ha mode