In Ambari switch authentication to PAM
hive.server2.authentication = PAM
4. Set PAM modules
Different possibilities, what worked for me was login, sshd: hive.server2.authentication.pam.services=login,sshd
5. Restart the hive server
You should now be able to login with username, password of the hiveserver2 host users. No kerberos problems no LDAP connection problems.
Note there are good reasons to use Kerberos or Knox because these support encryption and if you have an
LDAP environment this is definitely also a good option. But for a quick authentication configuration in an environment that accesses the server over secure networks PAM is a good option.
6. Getting Hue to run with PAM authentication
Hue 2.6 does not officially support PAM. However LDAP works the same for Hue.
- Make a copy of your hive configuration ( for example into /etc/hue/hive-conf )
- Change the authentication setting in the copy to LDAP
- Point hue to this configuration
- Enter the valid hue user, password as "LDAP user"