Support Questions
Find answers, ask questions, and share your expertise

How do I configure Ambari Hive View to work with LDAP Authentication to fix this error ?

Contributor

Hi All,

I have setup LDAP authentication for Ambari and Hive. I can login successfully using a LDAP account into Ambari and Hive using the beeline command tool but when I try to access the Hive View through Ambari I get the following error:

H020 Could not establish connecton to <domain>:10000: org.apache.thrift.transport.TTransportException: Peer indicated failure: Error validating the login: org.apache.thrift.transport.TTransportException: Peer indicated failure: Error validating the login

Does any one know how to correctly setup the following Hive View properties in Manage Ambari>Views>Hive>Hive View ?

Specifically Hive Authentication. It currently says auth=NONE but im guessing this needs to be something LDAP related.

any thoughts?

5 REPLIES 5

Hi @mike harding

I saw this error when you try to use IPaddress while configuring ambari hive view configuration.

Can you make sure you are using hostname and not ipaddress in configuration.

Pls check this too - https://community.hortonworks.com/questions/5513/ambari-hive-view-cannot-connect-when-using-http-tr....

Let me know if that works ?

Contributor

I'm already running Ambari 2.2.0.0 so don't think this is the issue 😞

Contributor

Thanks - my cluster is non-kerberized but I tried changing auth=NONE to LDAP in the Hive View settings but it didn't help. Do you think I need to specify some credentials in this property perhaps?

Rising Star

@mike harding

You need to update 'auth=NONE' to the following:

auth=NONE;password=${ask_password}

This will prompt the user to enter their LDAP password within the Ambari Hive View and allow them to connect to Hive via LDAP auth.

Note, this configuration wasn't supported in older versions of Ambari.

Full details can be found in the following thread: https://community.hortonworks.com/answers/38709/view.html