Added support for HA and kerberos

* also fixed the oozie & salt issues mirrored from cdh5