<?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 Ranger Hive repository test connection fails in kerberized cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Hive-repository-test-connection-fails-in-kerberized/m-p/149087#M24023</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am using Ambari -2.1.2 and HDP -2.3.0.0-2557 with kerberos and Ranger configured.&lt;/P&gt;&lt;P&gt;I tried to setup HIVE repository in Ranger but test connection fails. Below are my repository details -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3083-screen-shot-2016-03-30-at-102602-am.png" style="width: 1432px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21290iE2FD9DF88D3377DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3083-screen-shot-2016-03-30-at-102602-am.png" alt="3083-screen-shot-2016-03-30-at-102602-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where jdbc url is - " jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com "&lt;/P&gt;&lt;P&gt;I tested same using beeline from the node2.example.com where i have my hiveserver2 installed. Below are logs -&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com&lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com&lt;/P&gt;&lt;P&gt;Enter username for jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com: hive&lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com: ****&lt;/P&gt;&lt;P&gt;Connected to: Apache Hive (version 1.2.1.2.3.0.0-2557)&lt;/P&gt;&lt;P&gt;Driver: Hive JDBC (version 1.2.1.2.3.0.0-2557)&lt;/P&gt;&lt;P&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://node2.example.com:10000/defau&amp;gt; &lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;below are ranger xa-admin logs i see -&lt;/P&gt;&lt;P&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com: GSS initiate failed (state=08S01,code=0)&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://node2.example.com:10000/defau (closed)&amp;gt; 16/03/30 10:29:59 [main]: ERROR transport.TSaslTransport: SASL negotiation failure&lt;/P&gt;&lt;P&gt;javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;/P&gt;&lt;P&gt;at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TSaslClientTransport.handleSaslStartMessage(TSaslClientTransport.java:94)&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271)&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:52)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:49)&lt;/P&gt;&lt;P&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/P&gt;&lt;P&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 13:08:47 GMT</pubDate>
    <dc:creator>sshimpi</dc:creator>
    <dc:date>2019-08-18T13:08:47Z</dc:date>
    <item>
      <title>Ranger Hive repository test connection fails in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Hive-repository-test-connection-fails-in-kerberized/m-p/149087#M24023</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am using Ambari -2.1.2 and HDP -2.3.0.0-2557 with kerberos and Ranger configured.&lt;/P&gt;&lt;P&gt;I tried to setup HIVE repository in Ranger but test connection fails. Below are my repository details -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3083-screen-shot-2016-03-30-at-102602-am.png" style="width: 1432px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21290iE2FD9DF88D3377DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3083-screen-shot-2016-03-30-at-102602-am.png" alt="3083-screen-shot-2016-03-30-at-102602-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where jdbc url is - " jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com "&lt;/P&gt;&lt;P&gt;I tested same using beeline from the node2.example.com where i have my hiveserver2 installed. Below are logs -&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com&lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com&lt;/P&gt;&lt;P&gt;Enter username for jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com: hive&lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com: ****&lt;/P&gt;&lt;P&gt;Connected to: Apache Hive (version 1.2.1.2.3.0.0-2557)&lt;/P&gt;&lt;P&gt;Driver: Hive JDBC (version 1.2.1.2.3.0.0-2557)&lt;/P&gt;&lt;P&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://node2.example.com:10000/defau&amp;gt; &lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;below are ranger xa-admin logs i see -&lt;/P&gt;&lt;P&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://node2.example.com:10000/default;principal=hive/node2.example.com@example.com: GSS initiate failed (state=08S01,code=0)&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://node2.example.com:10000/defau (closed)&amp;gt; 16/03/30 10:29:59 [main]: ERROR transport.TSaslTransport: SASL negotiation failure&lt;/P&gt;&lt;P&gt;javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;/P&gt;&lt;P&gt;at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TSaslClientTransport.handleSaslStartMessage(TSaslClientTransport.java:94)&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271)&lt;/P&gt;&lt;P&gt;at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:52)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:49)&lt;/P&gt;&lt;P&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/P&gt;&lt;P&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 13:08:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Hive-repository-test-connection-fails-in-kerberized/m-p/149087#M24023</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2019-08-18T13:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Hive repository test connection fails in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Hive-repository-test-connection-fails-in-kerberized/m-p/149088#M24024</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;This issue is resolved. I missed to create hive repository user for ranger-hive plugin.&lt;/P&gt;&lt;P&gt;Created the user in kerberos and modified configuration and it worked.&lt;/P&gt;&lt;P&gt;Referred below link - &lt;A href="https://github.com/abajwa-hw/security-workshops/blob/master/Setup-ranger-22.md#setup-hdfs-repo-in-ranger" target="_blank"&gt;https://github.com/abajwa-hw/security-workshops/blob/master/Setup-ranger-22.md#setup-hdfs-repo-in-ranger&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 12:46:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Hive-repository-test-connection-fails-in-kerberized/m-p/149088#M24024</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-03-30T12:46:26Z</dc:date>
    </item>
  </channel>
</rss>

