<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: HiverServer2 connectivity with LDAPS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129410#M18361</link>
    <description>&lt;P&gt;It would be more helpful, if I should know on what reasons this errors comes, so that I can pin point the problem. Or please give me some steps to debug and solution.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2016 00:53:21 GMT</pubDate>
    <dc:creator>sushil61</dc:creator>
    <dc:date>2016-02-09T00:53:21Z</dc:date>
    <item>
      <title>HiverServer2 connectivity with LDAPS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129408#M18359</link>
      <description>&lt;P&gt;HDP-2.3.2.0-2950, Ambari 2.1, Hive: 1.2.1.2.3&lt;/P&gt;&lt;P&gt;I am facing problem in connecting beeline with secured ldap. Here are my testing, setups and errors:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Secured LDAP Conenctivity Testing (working)&lt;/STRONG&gt;: &lt;/P&gt;&lt;P&gt;
ping -c1 xxxx.net &lt;/P&gt;&lt;P&gt;telnet xxxx.net 636 &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Setup:&lt;/STRONG&gt; &lt;/P&gt;&lt;PRE&gt;/etc/openldap/ldap.conf : TLS_CACERTDIR /usr/jdk64/jdk1.7.0_67/jre/lib/security &lt;/PRE&gt;&lt;P&gt;Certifictae Type: CA certificate &lt;/P&gt;&lt;PRE&gt;keytool -import -trustcacerts -alias xxxx -storepass changeit -noprompt -file 6a386909.0 -keystore /usr/jdk64/jdk1.7.0_67/jre/lib/security/cacerts  (Certificate imported)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Works Fine:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;ldapsearch -x -W -D 'uid=abc@xx.com,ou=People,o=xx.com' -H ldaps://xxxx.net:636 -b o=xx.com  "(uid=abc@xx.com)" &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HDFS env Setup&lt;/STRONG&gt;: &lt;/P&gt;&lt;PRE&gt;export HADOOP_OPTS="-Djava_net_preferIPv4Stack=true
-Djavax.net.ssl.trustStore=/usr/jdk64/jdk1.7.0_67/jre/lib/security/cacerts 
-Djavax.net.ssl.trustStorePassword=changeit ${HADOOP_OPTS}" &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Hive Advance Setup:&lt;/STRONG&gt; &lt;/P&gt;&lt;PRE&gt;hive.server2.authentication.ldap.baseDN : CN=%s,uid=%s,OU=People,O=xx.com 
hive.server2.authentication.ldap.url : ldaps://xxxx.net &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;beeline&amp;gt;&lt;/STRONG&gt; !connect jdbc:hive2://&amp;lt;myhiveserver2-host&amp;gt;:10000 &lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://&amp;lt;myhiveserver2-host&amp;gt;:10000 &lt;/P&gt;&lt;P&gt;Enter username for jdbc:hive2://&amp;lt;myhiveserver2-host&amp;gt;:10000: abc@xx.com  (TRIED with just abc also)&lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://&amp;lt;myhiveserver2-host&amp;gt;:10000: ********* &lt;/P&gt;&lt;P&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://&amp;lt;myhiveserver2-host&amp;gt;:10000: Peer indicated failure: Error validating the login (state=08S01,code=0)
0: jdbc:hive2://&amp;lt;myhiveserver2-host&amp;gt;:100 (closed)&amp;gt; &lt;/P&gt;&lt;P&gt;
hiveserver2.log &lt;/P&gt;&lt;PRE&gt;------------------
2016-02-07 20:06:07,764 ERROR [HiveServer2-Handler-Pool: Thread-47]: transport.TSaslTransport (TSaslTransport.java:open(315)) - SASL negotiation failure
javax.security.sasl.SaslException: Error validating the login [Caused by javax.security.sasl.AuthenticationException: Error validating LDAP user [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]]]
        at org.apache.hive.service.auth.PlainSaslServer.evaluateResponse(PlainSaslServer.java:109)
        at org.apache.thrift.transport.TSaslTransport$SaslParticipant.evaluateChallengeOrResponse(TSaslTransport.java:539)
        at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:283)
        at org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
        at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:268)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: javax.security.sasl.AuthenticationException: Error validating LDAP user [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]]
        at org.apache.hive.service.auth.LdapAuthenticationProviderImpl.Authenticate(LdapAuthenticationProviderImpl.java:77)
        at org.apache.hive.service.auth.PlainSaslHelper$PlainServerCallbackHandler.handle(PlainSaslHelper.java:106)
        at org.apache.hive.service.auth.PlainSaslServer.evaluateResponse(PlainSaslServer.java:102)
        ... 8 more&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Feb 2016 04:42:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129408#M18359</guid>
      <dc:creator>sushil61</dc:creator>
      <dc:date>2016-02-08T04:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: HiverServer2 connectivity with LDAPS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129409#M18360</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2038/sushil61.html" nodeid="2038"&gt;@Sushil Saxena&lt;/A&gt;&lt;P&gt;[LDAP: error code 49 - Invalid Credentials]]]  -- See this &lt;/P&gt;&lt;P&gt;TSaslTransport.java:open(315)) - SASL negotiation failure javax.security.sasl.SaslException: Error validating the login [Caused by javax.security.sasl.AuthenticationException: Error validating LDAP user [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]]] &lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 09:58:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129409#M18360</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-08T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: HiverServer2 connectivity with LDAPS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129410#M18361</link>
      <description>&lt;P&gt;It would be more helpful, if I should know on what reasons this errors comes, so that I can pin point the problem. Or please give me some steps to debug and solution.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:53:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129410#M18361</guid>
      <dc:creator>sushil61</dc:creator>
      <dc:date>2016-02-09T00:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: HiverServer2 connectivity with LDAPS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129411#M18362</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2038/sushil61.html" nodeid="2038"&gt;@Sushil Saxena&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Your base DN should be(assuming it is NOT AD)&lt;/P&gt;&lt;PRE&gt;hive.server2.authentication.ldap.baseDN: OU=People,O=xx.com&lt;/PRE&gt;&lt;P&gt;Ensure that you go to the host in Ambari (not Dashboard) and restart HiveServer2 from the host list.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 03:03:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129411#M18362</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-02-09T03:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: HiverServer2 connectivity with LDAPS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129412#M18363</link>
      <description>&lt;P&gt;Are you able to find a solution to this problem yet?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 01:58:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiverServer2-connectivity-with-LDAPS/m-p/129412#M18363</guid>
      <dc:creator>cakkinep</dc:creator>
      <dc:date>2016-02-11T01:58:45Z</dc:date>
    </item>
  </channel>
</rss>

