<?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: ranger hive plugin not autocompleting databases and tables in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209004#M66379</link>
    <description>&lt;P&gt;HI Th Kr,&lt;/P&gt;&lt;P&gt;i did following steps,&lt;/P&gt;&lt;P&gt;1. did backup of this folder /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive in ranger node. &lt;/P&gt;&lt;P&gt; cp /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hivebkp
1. copy hive jars from another node. &lt;/P&gt;&lt;P&gt;2. copied hive 1.2 jars and its dependencies jars into /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive folder&lt;/P&gt;&lt;P&gt;scp -r /usr/hdp/2.6.1.0-129/hive/lib/* root@hostname:/usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/
where ip-172-31-4-145.us-east-2.compute.internal is ranger node.
change ownership in ranger node. &lt;/P&gt;&lt;P&gt;3. Copied ranger plugin into /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/ folder&lt;/P&gt;&lt;P&gt;cp ../hivebkp/ranger-hive-plugin-0.7.0.2.6.1.0-129.jar /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/&lt;/P&gt;&lt;P&gt;3. Changed ownership of this folder &lt;/P&gt;&lt;P&gt;chown -R ranger:ranger /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive&lt;/P&gt;&lt;P&gt;
4. restarted ranger service and tested connection.&lt;/P&gt;&lt;P&gt;Note: this error not happened in hdp-2.6.2&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 20:56:48 GMT</pubDate>
    <dc:creator>mahesh11</dc:creator>
    <dc:date>2017-09-13T20:56:48Z</dc:date>
    <item>
      <title>ranger hive plugin not autocompleting databases and tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209001#M66376</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have configured ranger  and hive plugin using ambari. Following are my environment details,&lt;/P&gt;&lt;P&gt;HDP version = HDP-2.6.1.0&lt;/P&gt;&lt;P&gt;Hive version = 1.2.1000&lt;/P&gt;&lt;P&gt;Ranger version = 0.7.0&lt;/P&gt;&lt;P&gt;When i add a policy for hive, databases and tables not being autocompleted. I am getting following error in /var/log/ranger/admin/xa_portal.log.&lt;/P&gt;&lt;P&gt;From logs i found that it is due to hive jdbc version mismatching. &lt;A href="https://issues.apache.org/jira/browse/HIVE-6050" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-6050&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to resolve this issue.&lt;/P&gt;&lt;PRE&gt;2017-08-10 06:17:31,323 [timed-executor-pool-0-SendThread(ip-172-31-14-251.us-east-2.compute.internal:2181)] WARN  org.apache.zookeeper.ClientCnxn$SendThread (ClientCnxn.java:957) - SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named 'Client' was found in specified JAAS configuration file: '/dev/null'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.
2017-08-10 06:17:31,338 [timed-executor-pool-0-EventThread] ERROR org.apache.curator.ConnectionState (ConnectionState.java:244) - Authentication failed
2017-08-10 06:17:31,429 [timed-executor-pool-0] ERROR org.apache.hive.jdbc.HiveConnection (HiveConnection.java:588) - Error opening session
org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default})
	at org.apache.thrift.TApplicationException.read(TApplicationException.java:111)
	at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
	at org.apache.hive.service.rpc.thrift.TCLIService$Client.recv_OpenSession(TCLIService.java:168)
	at org.apache.hive.service.rpc.thrift.TCLIService$Client.OpenSession(TCLIService.java:155)
	at org.apache.hive.jdbc.HiveConnection.openSession(HiveConnection.java:578)
	at org.apache.hive.jdbc.HiveConnection.&amp;lt;init&amp;gt;(HiveConnection.java:188)
	at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:247)
	at org.apache.ranger.services.hive.client.HiveClient.initConnection(HiveClient.java:713)
	at org.apache.ranger.services.hive.client.HiveClient.access$100(HiveClient.java:55)
	at org.apache.ranger.services.hive.client.HiveClient$2.run(HiveClient.java:97)
	at org.apache.ranger.services.hive.client.HiveClient$2.run(HiveClient.java:95)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.ranger.services.hive.client.HiveClient.initHive(HiveClient.java:95)
	at org.apache.ranger.services.hive.client.HiveClient.&amp;lt;init&amp;gt;(HiveClient.java:76)
	at org.apache.ranger.services.hive.client.HiveConnectionMgr$1.call(HiveConnectionMgr.java:58)
	at org.apache.ranger.services.hive.client.HiveConnectionMgr$1.call(HiveConnectionMgr.java:55)
	at org.apache.ranger.plugin.util.TimedEventUtil.timedTask(TimedEventUtil.java:40)
	at org.apache.ranger.services.hive.client.HiveConnectionMgr.getHiveConnection(HiveConnectionMgr.java:62)
	at org.apache.ranger.services.hive.client.HiveResourceMgr.getHiveResources(HiveResourceMgr.java:109)
	at org.apache.ranger.services.hive.RangerServiceHive.lookupResource(RangerServiceHive.java:81)
	at org.apache.ranger.biz.ServiceMgr$LookupCallable.actualCall(ServiceMgr.java:542)
	at org.apache.ranger.biz.ServiceMgr$LookupCallable.actualCall(ServiceMgr.java:526)
	at org.apache.ranger.biz.ServiceMgr$TimedCallable.call(ServiceMgr.java:508)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
2017-08-10 06:17:31,430 [timed-executor-pool-0] WARN  org.apache.hive.jdbc.HiveConnection (HiveConnection.java:192) - Failed to connect to ip-172-31-11-110.us-east-2.compute.internal:10000
2017-08-10 06:17:31,433 [timed-executor-pool-0-SendThread(ip-172-31-14-251.us-east-2.compute.internal:2181)] WARN  org.apache.zookeeper.ClientCnxn$SendThread (ClientCnxn.java:957) - SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named 'Client' was found in specified JAAS configuration file: '/dev/null'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.
2017-08-10 06:17:31,433 [timed-executor-pool-0-EventThread] ERROR org.apache.curator.ConnectionState (ConnectionState.java:244) - Authentication failed
2017-08-10 06:17:31,442 [timed-executor-pool-0] WARN  org.apache.hive.jdbc.HiveConnection (HiveConnection.java:213) - Could not open client transport with JDBC Uri: jdbc:hive2://ip-172-31-11-110.us-east-2.compute.internal:10000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2: Could not establish connection to jdbc:hive2://ip-172-31-11-110.us-east-2.compute.internal:10000/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default}) Retrying 0 of 1
2017-08-10 06:17:31,444 [timed-executor-pool-0] ERROR org.apache.hive.jdbc.HiveConnection (HiveConnection.java:588) - Error opening session
org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default})


&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:45:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209001#M66376</guid>
      <dc:creator>mahesh11</dc:creator>
      <dc:date>2017-08-10T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: ranger hive plugin not autocompleting databases and tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209002#M66377</link>
      <description>&lt;P&gt;I fixed this issue by changing ranger hive plugin classpath into hive-1.2 jdbc jar and its dependencies.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mahesh Sankaran&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 16:04:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209002#M66377</guid>
      <dc:creator>mahesh11</dc:creator>
      <dc:date>2017-08-11T16:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: ranger hive plugin not autocompleting databases and tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209003#M66378</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;could give a little more information where you exactly changed the classpath?&lt;/P&gt;&lt;P&gt;We're stuck at the same problem.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 22:42:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209003#M66378</guid>
      <dc:creator>thorsten_krause</dc:creator>
      <dc:date>2017-09-12T22:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: ranger hive plugin not autocompleting databases and tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209004#M66379</link>
      <description>&lt;P&gt;HI Th Kr,&lt;/P&gt;&lt;P&gt;i did following steps,&lt;/P&gt;&lt;P&gt;1. did backup of this folder /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive in ranger node. &lt;/P&gt;&lt;P&gt; cp /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hivebkp
1. copy hive jars from another node. &lt;/P&gt;&lt;P&gt;2. copied hive 1.2 jars and its dependencies jars into /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive folder&lt;/P&gt;&lt;P&gt;scp -r /usr/hdp/2.6.1.0-129/hive/lib/* root@hostname:/usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/
where ip-172-31-4-145.us-east-2.compute.internal is ranger node.
change ownership in ranger node. &lt;/P&gt;&lt;P&gt;3. Copied ranger plugin into /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/ folder&lt;/P&gt;&lt;P&gt;cp ../hivebkp/ranger-hive-plugin-0.7.0.2.6.1.0-129.jar /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/&lt;/P&gt;&lt;P&gt;3. Changed ownership of this folder &lt;/P&gt;&lt;P&gt;chown -R ranger:ranger /usr/hdp/2.6.1.0-129/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive&lt;/P&gt;&lt;P&gt;
4. restarted ranger service and tested connection.&lt;/P&gt;&lt;P&gt;Note: this error not happened in hdp-2.6.2&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 20:56:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209004#M66379</guid>
      <dc:creator>mahesh11</dc:creator>
      <dc:date>2017-09-13T20:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: ranger hive plugin not autocompleting databases and tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209005#M66380</link>
      <description>&lt;P&gt;Thanks! With HDP 2.6.2 it works fine!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:04:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-hive-plugin-not-autocompleting-databases-and-tables/m-p/209005#M66380</guid>
      <dc:creator>thorsten_krause</dc:creator>
      <dc:date>2017-09-14T20:04:22Z</dc:date>
    </item>
  </channel>
</rss>

