<?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: kerberized HDP 2.4 - Hbase user not able to access table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155220#M53060</link>
    <description>&lt;P&gt;Login with HBase user and grant access to hbase_user1 on the table&lt;/P&gt;&lt;PRE&gt;grant 'user', 'RWXCA', 'TABLE', 'CF', 'CQ'&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://hbase.apache.org/book.html#hbase.accesscontrol.configuration" target="_blank"&gt;https://hbase.apache.org/book.html#hbase.accesscontrol.configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can review the following tutorial as well &lt;A href="http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 08:12:40 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2017-02-01T08:12:40Z</dc:date>
    <item>
      <title>kerberized HDP 2.4 - Hbase user not able to access table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155219#M53059</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11942-screen-shot-2017-01-31-at-123441-pm.png"&gt;screen-shot-2017-01-31-at-123441-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11943-screen-shot-2017-01-31-at-123417-pm.png"&gt;screen-shot-2017-01-31-at-123417-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hi All - i've a kerberized HDP 2.4 cluster, and i'm facing issue wherein user - hbase_user1 
created is not able to 'see' the table, though access is provided to the user.&lt;/P&gt;&lt;P&gt;Here is what is done -&amp;gt;&lt;/P&gt;&lt;P&gt;1) User - logging in as user 'hbase_user1'  to cluster &lt;/P&gt;&lt;P&gt;2) generated a valid kerberos ticket&lt;/P&gt;&lt;P&gt;[hbase_user1@sandbox ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_1029
Default principal: hbase_user1@EXAMPLE.COM&lt;/P&gt;&lt;P&gt;Valid starting  Expires  Service principal
01/31/17 19:11:24  02/01/17 19:11:24  krbtgt/EXAMPLE.COM@EXAMPLE.COM
   renew until 01/31/17 19:11:24 &lt;/P&gt;&lt;P&gt;3) launch 'hbase shell' and fire command -&amp;gt; list&lt;/P&gt;&lt;P&gt;4) contents of log file shows that authorization for hbase_user1 is successful -&amp;gt; &lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;tail -f /var/log/hbase/SecurityAuth.audit
 
2017-01-31 20:04:50,330 INFO SecurityLogger.org.apache.hadoop.security.authorize.ServiceAuthorizationManager: Authorization successful for hbase/sandbox.hortonworks.com@EXAMPLE.COM (auth:KERBEROS) for protocol=interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingInterface
2017-01-31 20:09:50,329 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Auth successful for hbase/sandbox.hortonworks.com@EXAMPLE.COM (auth:SIMPLE)
2017-01-31 20:09:50,330 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Connection from 10.0.2.15 port: 35593 with version info: version: "1.1.2.2.4.0.0-169" url: "git://c66-slave-38a0b1a6-7/grid/0/jenkins/workspace/HDP-build-centos6/bigtop/build/hbase/rpm/BUILD/hbase-1.1.2.2.4.0.0" revision: "61dfb2b344f424a11f93b3f086eab815c1eb0b6a" user: "jenkins" date: "Wed Feb 10 07:08:51 UTC 2016" src_checksum: "afb8421bf497c0e82b9489877d53b904"
2017-01-31 20:09:50,330 INFO SecurityLogger.org.apache.hadoop.security.authorize.ServiceAuthorizationManager: Authorization successful for hbase/sandbox.hortonworks.com@EXAMPLE.COM (auth:KERBEROS) for protocol=interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingInterface
2017-01-31 20:14:39,192 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Auth successful for hbase_user1@EXAMPLE.COM (auth:SIMPLE)
2017-01-31 20:14:39,195 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Connection from 10.0.2.15 port: 39743 with version info: version: "1.1.2.2.4.0.0-169" url: "git://c66-slave-38a0b1a6-7/grid/0/jenkins/workspace/HDP-build-centos6/bigtop/build/hbase/rpm/BUILD/hbase-1.1.2.2.4.0.0" revision: "61dfb2b344f424a11f93b3f086eab815c1eb0b6a" user: "jenkins" date: "Wed Feb 10 07:08:51 UTC 2016" src_checksum: "afb8421bf497c0e82b9489877d53b904"
2017-01-31 20:14:39,195 INFO SecurityLogger.org.apache.hadoop.security.authorize.ServiceAuthorizationManager: &lt;EM&gt;&lt;STRONG&gt;Authorization successful for hbase_user1@EXAMPLE.COM (auth:KERBEROS) for protocol=interface org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$BlockingInterface
&lt;/STRONG&gt;&lt;/EM&gt;2017-01-31 20:14:50,329 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Auth successful for hbase/sandbox.hortonworks.com@EXAMPLE.COM (auth:SIMPLE)
2017-01-31 20:14:50,330 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Connection from 10.0.2.15 port: 35679 with version info: version: "1.1.2.2.4.0.0-169" url: "git://c66-slave-38a0b1a6-7/grid/0/jenkins/workspace/HDP-build-centos6/bigtop/build/hbase/rpm/BUILD/hbase-1.1.2.2.4.0.0" revision: "61dfb2b344f424a11f93b3f086eab815c1eb0b6a" user: "jenkins" date: "Wed Feb 10 07:08:51 UTC 2016" src_checksum: "afb8421bf497c0e82b9489877d53b904"
2017-01-31 20:14:50,330 INFO SecurityLogger.org.apache.hadoop.security.authorize.ServiceAuthorizationManager: Authorization successful for hbase/sandbox.hortonworks.com@EXAMPLE.COM (auth:KERBEROS) for protocol=interface org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingInterface
&lt;EM&gt;&lt;STRONG&gt;2017-01-31 20:16:24,955 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Auth successful for hbase_user1@EXAMPLE.COM (auth:SIMPLE)
&lt;/STRONG&gt;&lt;/EM&gt;2017-01-31 20:16:24,956 INFO SecurityLogger.org.apache.hadoop.hbase.Server: Connection from 10.0.2.15 port: 39773 with version info: version: "1.1.2.2.4.0.0-169" url: "git://c66-slave-38a0b1a6-7/grid/0/jenkins/workspace/HDP-build-centos6/bigtop/build/hbase/rpm/BUILD/hbase-1.1.2.2.4.0.0" revision: "61dfb2b344f424a11f93b3f086eab815c1eb0b6a" user: "jenkins" date: "Wed Feb 10 07:08:51 UTC 2016" src_checksum: "afb8421bf497c0e82b9489877d53b904"
2017-01-31 20:16:24,957 &lt;EM&gt;&lt;STRONG&gt;INFO SecurityLogger.org.apache.hadoop.security.authorize.ServiceAuthorizationManager: Authorization successful for hbase_user1@EXAMPLE.COM (auth:KERBEROS) for protocol=interface org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$BlockingInterface&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;However, the user is not able to see any of the tables.
Attaching the screenshot of Ranger policies - Global access to HBase tables is blocked, while access is provided
to tabe iemployee to user - hbase_user1.&lt;/P&gt;&lt;P&gt;Also, pls note : service user - hbase is able to access all hbase tables &lt;/P&gt;&lt;P&gt;What needs to be done to fix this access issue for user -&amp;gt; hbase_user1 ?&lt;/P&gt;&lt;P&gt;Any pointers on this would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 04:37:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155219#M53059</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-02-01T04:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: kerberized HDP 2.4 - Hbase user not able to access table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155220#M53060</link>
      <description>&lt;P&gt;Login with HBase user and grant access to hbase_user1 on the table&lt;/P&gt;&lt;PRE&gt;grant 'user', 'RWXCA', 'TABLE', 'CF', 'CQ'&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://hbase.apache.org/book.html#hbase.accesscontrol.configuration" target="_blank"&gt;https://hbase.apache.org/book.html#hbase.accesscontrol.configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can review the following tutorial as well &lt;A href="http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 08:12:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155220#M53060</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-01T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: kerberized HDP 2.4 - Hbase user not able to access table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155221#M53061</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;&lt;/P&gt;&lt;P&gt;thanks, granting access to the user - hbase_user1 actually worked. &lt;/P&gt;&lt;P&gt;However, i'd already given access to the table using Apache Ranger. Shouldn't that have worked ? &lt;/P&gt;&lt;P&gt;What needs to be done to check/ensuure the Ranger integration with Hbase to control access ?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A few more details -
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Actually, when i check the Ranger audit logs - the user 'hbase_user1' appears only till December 2nd, 2017 - screenshot 
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11946-screen-shot-2017-01-31-at-60941-pm.png"&gt;screen-shot-2017-01-31-at-60941-pm.png&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This setup was created in Nov, and was working when i checked last year, 
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching screenshots of the ranger policies. - global access to hbase is removed, and access to table - 'iemployee' is provided to user - hbase_user1.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11944-screen-shot-2017-01-31-at-51919-pm.png"&gt;screen-shot-2017-01-31-at-51919-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11945-screen-shot-2017-01-31-at-51817-pm.png"&gt;screen-shot-2017-01-31-at-51817-pm.png&lt;/A&gt;
&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:50:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155221#M53061</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-02-01T09:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: kerberized HDP 2.4 - Hbase user not able to access table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155222#M53062</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; you need to disable global allow policy and grant permissions per table, please review the section on hbase in our tutorial, it explains it well &lt;A href="http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/#hbase-grant-revoke"&gt;http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/#hbase-grant-revoke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if any of the answers helped, please close the thread by accepting best answer.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:57:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155222#M53062</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-01T09:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: kerberized HDP 2.4 - Hbase user not able to access table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155223#M53063</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; - wrt. your previous comment, i've done exactly that (pls see my comments above &amp;amp; also the screenshots attached in my previous comment)&lt;/P&gt;&lt;P&gt;i.e.  1) Disabled Global access to Hbase table&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;2) Given access to user - hbase_user1 to scan table 'iemployee'&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;This is done using Apache Ranger, for some reason the Ranger permissions are not being enforced.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;Any ideas ?&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;When i provided the permissions on command-line, i was able to enforce permissions !  &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 15:21:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155223#M53063</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-02-01T15:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: kerberized HDP 2.4 - Hbase user not able to access table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155224#M53064</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; you still need to provide explicit policy even though ranger for hbase is enabled, once you run explicit grant/revoke, it will be propogated to Ranger. Please see our doc &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/ch03s02s04s02.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/ch03s02s04s02.html&lt;/A&gt; all make sure your hbase service is configured correctly &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/hbase_service.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/ch03s02s04s02.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;also double check ranger hbase plugin settings &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/hbase_plugin_kerberos.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/hbase_plugin_kerberos.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:13:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kerberized-HDP-2-4-Hbase-user-not-able-to-access-table/m-p/155224#M53064</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-01T22:13:55Z</dc:date>
    </item>
  </channel>
</rss>

