Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Configuring Multiple LDAP at hive

avatar
Explorer

Hi 

 

Is there a way to configure multiple LDAP servers (LDAP HA) in the hive-site.xml ?

As of now we have only configured one LDAP server using below property:

hive.server2.authentication.ldap.url

 

<property>
     <name>hive.server2.authentication.ldap.url</name>
     <value>LDAP_URL</value>
</property>

 

Our requirement is to config two LDAP servers to provide HA.

 

Thanks

 
2 REPLIES 2

avatar
Expert Contributor

Hi @mhchethan 

 

Generally, we suggest using a single LDAP URL. If you want more than one you can configure LB and that LB should connect to your backend 

 

https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.0/securing-hive/content/hive_secure_hiveserver_u...

 

If you are happy with the reply, mark it Accept as Solution

avatar
Master Collaborator

@mhchethan Yes, you could mention multiple LDAP URLs separated by spaces.

Hive will try the URLs in the mentioned order until a connection is successful.

 

Ref: hive.server2.authentication.ldap.url