<?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 policy for Hive table backed on HBase in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131298#M18503</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; are you following similar steps as this guide? You should be able to see the table from both places &lt;A href="https://community.hortonworks.com/content/kbentry/14806/working-with-hbase-and-hive-wip.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/14806/working-with-hbase-and-hive-wip.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2016 00:42:37 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-02-09T00:42:37Z</dc:date>
    <item>
      <title>Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131290#M18495</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Hive table which sits on top of HBase and create two policies for the same user in Ranger. One for Hive and one for HBase, to allow access to the corresponding table.&lt;/P&gt;&lt;P&gt;In Ranger I can see the agents has successfully registered and they received the latest changes.&lt;/P&gt;&lt;P&gt;If I now do a select * from hivetableonhbase; vie Hue I receive the error:&lt;/P&gt;&lt;PRE&gt;java.io.IOException: org.apache.hadoop.hbase.security.AccessDeniedException: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'pklfsvc' for scanner open on table hbaseidv
	at com.xasecure.authorization.hbase.XaSecureAuthorizationCoprocessor.preScannerOpen(XaSecureAuthorizationCoprocessor.java:719)
	at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.preScannerOpen(RegionCoprocessorHost.java:1870)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:3167)
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:29994)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2078)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:108)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94) &lt;/PRE&gt;&lt;P&gt;	at java.lang.Thread.run(Thread.java:745)&lt;/P&gt;&lt;P&gt;And in addition I do not see any attempt to access HBase in Ranger Audit log.&lt;/P&gt;&lt;P&gt;Is there something special in Accessing HBase via Hive with respect to grant permissions to users ?!?!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 23:38:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131290#M18495</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-08T23:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131291#M18496</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt;&lt;P&gt; This is great question and personally, I have never worked on this use case.&lt;/P&gt;&lt;P&gt;Did you grant access to hive and hbase tables to user pklfsvc in Hive and HBase policies?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 23:41:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131291#M18496</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-08T23:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131292#M18497</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; , yes, user 'pklfsvc' has rwx permissions in Hive- and HBase-Ranger policy&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 23:44:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131292#M18497</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-08T23:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131293#M18498</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; Are you able to access using beeline? &lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 23:45:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131293#M18498</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-08T23:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131294#M18499</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt;
&lt;/P&gt;&lt;P&gt; awesome question, according to this jira, can you double check the znode information for the table? &lt;A href="https://issues.apache.org/jira/browse/HBASE-9285"&gt;jira&lt;/A&gt; this might be a bug with Ranger. &lt;/P&gt;&lt;PRE&gt;scan 'hbase:acl'&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Feb 2016 23:55:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131294#M18499</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-08T23:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131295#M18500</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/15251/ranger-policy-for-hive-table-backed-on-hbase.html#"&gt;@Neeraj Sabharwal&lt;/A&gt; , connect yes, but also permission error:&lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://b0d02ef2:10&amp;gt; show tables;
+----------------------+--+
|       tab_name       |
+----------------------+--+
| hbaseidvtmp  |
| hbaseidv    |

2 rows selected (0.293 seconds)
0: jdbc:hive2://b0d02ef2:10&amp;gt; select * from hbaseidv;
Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [pklfsvc] does not have [SELECT] privilege on [&amp;lt;dbname&amp;gt;/hbaseidv/birthdate] (state=42000,code=40000)
0: jdbc:hive2://b0d02ef2:10&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:27:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131295#M18500</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-09T00:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131296#M18501</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt;  Perfect!!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So...Hue is casuing the trouble?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131296#M18501</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-09T00:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131297#M18502</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; , please find below the output of your command. Seems like there are no settings for table 'hbaseidv' ...&lt;/P&gt;&lt;PRE&gt;ROW                                    COLUMN+CELL
 ambarismoketest                       column=l:ambari-qa, timestamp=1453802112798, value=RWXCA
 hbase:acl                             column=l:ambari-qa, timestamp=1453802098747, value=RWXCA
2 row(s) in 0.5710 seconds&lt;/PRE&gt;&lt;P&gt;Do I have to set something directly in HBase ? &lt;/P&gt;&lt;P&gt;My assumption was that Ranger-HBase-policy will abstract this, like for HDFS (HDFS-ACL set to 000 and grant access via Ranger ) ?!?!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:33:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131297#M18502</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-09T00:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131298#M18503</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; are you following similar steps as this guide? You should be able to see the table from both places &lt;A href="https://community.hortonworks.com/content/kbentry/14806/working-with-hbase-and-hive-wip.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/14806/working-with-hbase-and-hive-wip.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:42:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131298#M18503</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-09T00:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131299#M18504</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; , nope, Hue is not causing the troubles since via Beeline I receive the same permission denied error ...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:50:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131299#M18504</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-09T00:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131300#M18505</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; birthdate  is the only column in picture? &lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:52:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131300#M18505</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-09T00:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131301#M18506</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/15251/ranger-policy-for-hive-table-backed-on-hbase.html#"&gt;@Artem Ervits&lt;/A&gt; , thanks for this great link.&lt;/P&gt;&lt;P&gt;If I connect as user 'hbase' I can execute a "scan 'hbaseidv' " successfully, but if I open a hbase shell as user pklfsvc I receive the error shown below.&lt;/P&gt;&lt;P&gt;Do I have to grant rwx to that user on HBase level before putting Ranger policies on top ?&lt;/P&gt;&lt;PRE&gt;hbase(main):002:0&amp;gt; scan 'hbaseidv'
ROW                                         COLUMN+CELL
ERROR: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'pklfsvc' for scanner open on table hbaseidv&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:59:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131301#M18506</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-09T00:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131302#M18507</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; the only advice I have for you as this is a unique use case is to try and then post an article :). &lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 01:02:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131302#M18507</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-09T01:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131303#M18508</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; , sure, will do so as soon as I have prepared the stuff...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 01:38:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131303#M18508</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-09T01:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger policy for Hive table backed on HBase</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131304#M18509</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; , &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;at the end, using Ranger policies for Hive-on-top-of-HBase works as supposed to do so, by defining Hive-Policy and HBase-Policy for the involved tables.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The issue I had was the following&lt;/STRONG&gt;, although I really don't understand why it is like it is:&lt;/P&gt;&lt;P&gt;switching back to Ranger-HTTP from HTTPS left the policy_mgr_url starting with &lt;A href="HTTPS://&amp;lt;ranger-admin&amp;gt;:&amp;lt;port&amp;gt;" target="_blank"&gt;HTTPS://&amp;lt;ranger-admin&amp;gt;:&amp;lt;port&amp;gt;&lt;/A&gt;; on the HBase-REGIONSERVERS, thereby the REGIONSERVERS were complaining that they cannot grab latest Ranger policies due to SSL error. This was the reason why my HBase policies were never applied, because they never got fetched by the REGIONSERVERS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now the point that is confusing me:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;why the REGIONSERVERS ???? On the HBase-Master nodes there was no error, they had received the latest HBase-policies and therefore in the Ranger-Audit the agents heartbeat has been updated (and therefore I thought everything's fine).&lt;/P&gt;&lt;P&gt;Isn't it the similar behaviour of Ranger-plugin like in HDFS, that the plugin just hooks into the "master"-process Namenode , what is the role of Ranger-in-Regionserver here ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 21:23:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-policy-for-Hive-table-backed-on-HBase/m-p/131304#M18509</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-02-10T21:23:19Z</dc:date>
    </item>
  </channel>
</rss>

