Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

hive server2 Authentication ServiceUnavailableException

Contributor

All,

setting the hiveser2 authorization to LDAP. I changed below properties to
hive.server2.authentication =LDAP

hive.server2.authentication.ldap.url=ldap://hostFQDN:636(tried 389 too) hive.server2.authentication.ldap.baseDn=ou=xxxxx,dc=xxxx

Hive server log produces the following error:

Caused by: javax.security.sasl.AuthenticationException: LDAP Authentication failed for user [Caused by javax.naming.ServiceUnavailableException: hostFQDN.com:636; socket closed]

Do i need to change any parameters apart from these three?

Thanks in adv

1 REPLY 1

Guru

hello @raghavendra v,

I'd start by checking if I'm able to run 'ldapsearch' using the above parameters from HiveServer2 node. If that works, then I'll move on to checking network and/or firewall etc. Once the 'ldapsearch' is good, I'll make sure to use same parameters in HS2 configuration. Even if, with working LDAP parameters, HS2 doesn't work, then I'll enable debug logging for HS2 and looks for clues there.

Hope this helps.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.