<?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: Hive policy in ranger is not working in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164540#M53692</link>
    <description>&lt;P&gt;Pierre,&lt;/P&gt;&lt;P&gt;I am  using Beeline ,  and still  policy is not gettting implemented / kicked off;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 03:20:35 GMT</pubDate>
    <dc:creator>Jacqueline</dc:creator>
    <dc:date>2017-02-08T03:20:35Z</dc:date>
    <item>
      <title>Hive policy in ranger is not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164538#M53690</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12203-hive-ranger-policy-issuertfd.zip"&gt;hive-ranger-policy-issuertfd.zip&lt;/A&gt;Hi Hive policy setup using Ranger is not working. I am not using LDAP or kerberos.&lt;/P&gt;&lt;P&gt;I created one OS user called test2 and want to get read and read write on hive tables. It is not working. For hbase is works fine.&lt;/P&gt;&lt;P&gt;Policy was set without error. Please see the screen shot for policy&lt;/P&gt;&lt;P&gt;Your help is need please , to setup Hive - Ranger policy&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 03:06:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164538#M53690</guid>
      <dc:creator>Jacqueline</dc:creator>
      <dc:date>2017-02-08T03:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hive policy in ranger is not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164539#M53691</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15031/jacqualinjasmin.html" nodeid="15031"&gt;@Jacqualin jasmin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Why are you saying the policy does not work?&lt;/P&gt;&lt;P&gt;Please keep in mind, that Ranger policies on Hive are only applied if you access Hive through the Hive server (JDBC/ODBC connections, Beeline CLI, etc). If you are using the Hive CLI, then only the Ranger policies on HDFS are applied.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 03:13:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164539#M53691</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2017-02-08T03:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hive policy in ranger is not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164540#M53692</link>
      <description>&lt;P&gt;Pierre,&lt;/P&gt;&lt;P&gt;I am  using Beeline ,  and still  policy is not gettting implemented / kicked off;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 03:20:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164540#M53692</guid>
      <dc:creator>Jacqueline</dc:creator>
      <dc:date>2017-02-08T03:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive policy in ranger is not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164541#M53693</link>
      <description>&lt;P&gt;Could you share a screenshot or logs showing which user is launching beeline, what is the request you execute and what is the result of the command? Also is the Hive plugin for Ranger enabled in Ambari?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 03:25:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164541#M53693</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2017-02-08T03:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hive policy in ranger is not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164542#M53694</link>
      <description>&lt;P&gt;
	executed command are as below  .  Please see the screen shot for the setup&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12204-hive-ranger-policy-issuertfd.zip"&gt;hive-ranger-policy-issuertfd.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	*************&lt;/P&gt;&lt;P&gt;[test2@node01 ~]$ id&lt;/P&gt;&lt;P&gt;uid=513(test2) gid=504(hadoop) groups=504(hadoop)&lt;/P&gt;&lt;P&gt;[test2@node01 ~]$ beeline&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.&lt;/P&gt;&lt;P&gt;Beeline version 1.2.1000.2.4.2.0-258 by Apache Hive&lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2://&lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://&lt;/P&gt;&lt;P&gt;Enter username for jdbc:hive2://: test2&lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://: *****&lt;/P&gt;&lt;P&gt;Connected to: Apache Hive (version 1.2.1000.2.4.2.0-258)&lt;/P&gt;&lt;P&gt;Driver: Hive JDBC (version 1.2.1000.2.4.2.0-258)&lt;/P&gt;&lt;P&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://&amp;gt; INSERT INTO TABLE students VALUES ('fred flintstone', 35, 1.28); &lt;/P&gt;&lt;P&gt;17/02/07 19:39:56 [main]: ERROR hdfs.KeyProviderCache: Could not find uri with key [dfs.encryption.key.provider.uri] to create a keyProvider !!&lt;/P&gt;&lt;P&gt;Query ID = test2_20170207193955_e8c97ad8-f12b-4f04-91ae-eb0a9064bb27&lt;/P&gt;&lt;P&gt;Total jobs = 1&lt;/P&gt;&lt;P&gt;Launching Job 1 out of 1&lt;/P&gt;&lt;P&gt;17/02/07 19:40:05 [HiveServer2-Background-Pool: Thread-27]: WARN tez.DagUtils: hive.tez.java.opts will be ignored because hive.tez.container.size is not set!&lt;/P&gt;&lt;P&gt;17/02/07 19:40:05 [HiveServer2-Background-Pool: Thread-27]: WARN tez.DagUtils: hive.tez.java.opts will be ignored because hive.tez.container.size is not set!&lt;/P&gt;&lt;P&gt;Status: Running (Executing on YARN cluster with App id application_1486082581831_0025)&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;        VERTICES      STATUS  TOTAL  COMPLETED  RUNNING  PENDING  FAILED  KILLED&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Map 1 ..........   SUCCEEDED      1          1        0        0       0       0&lt;/P&gt;&lt;P&gt;Reducer 2 ......   SUCCEEDED      2          2        0        0       0       0&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;VERTICES: 02/02  [==========================&amp;gt;&amp;gt;] 100%  ELAPSED TIME: 9.01 s     &lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Loading data to table default.students&lt;/P&gt;&lt;P&gt;Table default.students stats: [numFiles=30, numRows=22, totalSize=10236, rawDataSize=4716]&lt;/P&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;No rows affected (20.948 seconds)&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://&amp;gt; &lt;/P&gt;&lt;P&gt;
	***************&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 03:55:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164542#M53694</guid>
      <dc:creator>Jacqueline</dc:creator>
      <dc:date>2017-02-08T03:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hive policy in ranger is not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164543#M53695</link>
      <description>&lt;P&gt;Just did the following in my env -&lt;/P&gt;&lt;P&gt;Installed Ranger, enabled Hive plugin, created a table student with a single column name, created a user "test" and created a /user/test directory in HDFS, created a rule in Ranger to only allow read access (select) to the table student for user test.&lt;/P&gt;&lt;P&gt;And here are my commands:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/pvillard31/528d0d186d05422b0b9d1f3b94a85a02" target="_blank"&gt;https://gist.github.com/pvillard31/528d0d186d05422b0b9d1f3b94a85a02&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems to be working as expected. In Audit / Plugins, can you check that the policies have been correctly synced with Hive?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 04:55:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164543#M53695</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2017-02-08T04:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive policy in ranger is not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164544#M53696</link>
      <description>&lt;P&gt;Hi Pierre,&lt;/P&gt;&lt;P&gt;Could able to find the issue with&lt;/P&gt;&lt;P&gt;1)  from beeline , if we connect just  with  &amp;lt; &lt;STRONG&gt;!connect jdbc:hive2://&lt;/STRONG&gt;  &amp;gt;  it just prompts for user name / password.   Now policy is not working&lt;/P&gt;&lt;P&gt;2)  if we connect with complete string like :  &lt;STRONG&gt;!connect jdbc:hive2://&amp;lt;hiveserver2&amp;gt;:10000/default test2 test2&lt;/STRONG&gt; , now the policy is enforced&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 07:10:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-policy-in-ranger-is-not-working/m-p/164544#M53696</guid>
      <dc:creator>Jacqueline</dc:creator>
      <dc:date>2017-02-08T07:10:35Z</dc:date>
    </item>
  </channel>
</rss>

