Skip to main content
mhchethan
Silver ⭐️⭐️⭐️
Nov 9, 2021 7:10 AM UTC
Question

Configuring Multiple LDAP at hive

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

Shifu
Gold ⭐️⭐️
Gold ⭐️⭐️
Nov 9, 2021 2:44 PM UTC

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_using_ldap.html

 

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

Translate
smruti
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Nov 14, 2021 9:59 AM UTC

@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 

 

Translate