<?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: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95552#M8843</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369"&gt;@amcbarnett@hortonworks.com&lt;/A&gt; Can you confirm you really needed the -D settings after you imported your cert into the truststore? These arguments you added are the defaults.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2015 23:52:47 GMT</pubDate>
    <dc:creator>carter</dc:creator>
    <dc:date>2015-10-27T23:52:47Z</dc:date>
    <item>
      <title>How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95545#M8836</link>
      <description />
      <pubDate>Thu, 15 Oct 2015 23:18:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95545#M8836</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-15T23:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95546#M8837</link>
      <description>&lt;P&gt;Personally I haven't setup LDAP SSL but here are the properties you can set in hive-site.xml.&lt;/P&gt;&lt;PRE&gt;hive.server2.authentication = LDAP
hive.server2.authentication.ldap.url = &amp;lt;LDAP URL&amp;gt;
hive.server2.authentication.ldap.baseDN = &amp;lt;LDAP Base DN&amp;gt;
hive.server2.use.SSL = true
hive.server2.keystore.path = &amp;lt;KEYSTORE FILE PATH&amp;gt;
hive.server2.keystore.password = &amp;lt;KEYSTORE PASSWORD&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Oct 2015 23:25:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95546#M8837</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-15T23:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95547#M8838</link>
      <description>&lt;P&gt;Both LDAP and SSL are covered in the Apache Hive docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-Authentication/SecurityConfiguration"&gt;Authentication/Security Configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-SSLEncryption"&gt;Setting up SSL Encryption&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 23:29:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95547#M8838</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2015-10-15T23:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95548#M8839</link>
      <description>&lt;P&gt;Isn't the ssl encryption different from LDAPs for authentication?  The key path is different&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 00:02:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95548#M8839</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-16T00:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95549#M8840</link>
      <description>&lt;P&gt;You're right. For LDAPS you just need to make sure the LDAP server's SSL certificate is trusted by the JVM that runs HS2. If using a self-signed (or otherwise untrusted) cert, import it into the corresponding &lt;A href="http://alvinalexander.com/blog/post/java/keytool-cacerts-java-ssl"&gt;cacerts&lt;/A&gt;, usually under $JAVA_HOME/jre/lib/security/cacerts&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 00:52:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95549#M8840</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2015-10-16T00:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95550#M8841</link>
      <description>&lt;P&gt;These keystore.path and the keystore.password is ONLY for SSL encryption.  It has nothing to do with LDAP SSL&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 23:00:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95550#M8841</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-21T23:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95551#M8842</link>
      <description>&lt;P&gt;Here is how I got it to work.&lt;/P&gt;&lt;P&gt;In order for tools such as Hive, Beeline to use LDAPs, you need to make a global change in HADOOP_OPTS for CA Certs, so that it is loaded with Hadoop in general, assuming you imported the cert (self-signed) into a cacert located in /etc/pki/java/cacerts&lt;/P&gt;&lt;P&gt;In HDFS-&amp;gt; Configs -&amp;gt; Hadoop Env Template add the following:&lt;/P&gt;&lt;P&gt;export HADOOP_OPTS="-Djava_net_preferIPv4Stack=true =Djavax.net.ssl.trustStore=/etc/pki/java/cacerts -Djavax.net.ssl.trustStorePassword=changeit ${HADOOP_OPTS}"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="276-screen-shot-2015-10-20-at-122115-pm.png" style="width: 508px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24045i55B87B26AD3869CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="276-screen-shot-2015-10-20-at-122115-pm.png" alt="276-screen-shot-2015-10-20-at-122115-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note: Components like Knox and Ranger does not use the hadoop_env and needs its own config to be set for LDAP SSL and a manually restart.&lt;/P&gt;&lt;P&gt;Why a manual restart?  Because it seems when you start with Ambari, there is no way to manual set user options so that Ambari can pick up these settings and use in java process of Ranger and Knox when it starts.  Only when Ranger and Knox is started manually, when restarting is the certs picked up. &lt;/P&gt;&lt;P&gt;Note also Hive View does not work with LDAP or LDAP ssl.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:57:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95551#M8842</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2019-08-19T12:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95552#M8843</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369"&gt;@amcbarnett@hortonworks.com&lt;/A&gt; Can you confirm you really needed the -D settings after you imported your cert into the truststore? These arguments you added are the defaults.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 23:52:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95552#M8843</guid>
      <dc:creator>carter</dc:creator>
      <dc:date>2015-10-27T23:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Setup HiveServer2 Authentication with LDAP SSL (No Knox)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95553#M8844</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/451/carter.html" nodeid="451"&gt;@carter@hortonworks.com&lt;/A&gt;
Yes, the only way it worked is when I used the -D settings.&lt;/P&gt;&lt;P&gt;However I have since been told that in order for Hadoop to use the cert, we should import into $JAVA_HOME/jre/lib/security/cacerts instead of /etc/pki/java/cacerts which we thought was the default.&lt;/P&gt;&lt;P&gt;So apparently if you are using any trustStore besides $JAVA_HOME/jre/lib/security/cacerts you would need the -D settings.&lt;/P&gt;&lt;P&gt;I haven't had a chance to test this as the folks I am working with got it to work with the -D settings, using /etc/java/cacerts and do not want to make any further changes.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 00:41:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Setup-HiveServer2-Authentication-with-LDAP-SSL-No/m-p/95553#M8844</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-28T00:41:11Z</dc:date>
    </item>
  </channel>
</rss>

