I am trying to connect to hive with LDAP through beeline. But I am getting
the following error:
Beeline> !connect
jdbc:hive2://hostname:10000/default;user=hive;password=xxxx
Error: Failed to open new session: java.lang.RuntimeException:
java.lang.RuntimeException:
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
User: hive is not allowed to impersonate hive (state=,code=0)
Ldapsearch is working fine with the ID ‘hive’. Here is my config for Ldap
in hive-site.xml
<property>
<name>hive.server2.authentication.ldap.baseDN</name>
<value>OU=gss,DC=mydomain,DC=com</value>
</property>
<property>
<name>hive.server2.authentication.ldap.url</name>
<value>ldap://ldapostname:389</value>
</property>
Also added “hive.server2.authentication.ldap.Domain”.
Please let me know if anyone has faced this issue earlier.
Thanks
Praveen