<?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: cant create HBASE table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158534#M120929</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;user "sami@abc.com" does not have permissions to create table in HBase. you need to set these permissions for this user in Ranger.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Dec 2016 00:18:29 GMT</pubDate>
    <dc:creator>mqureshi</dc:creator>
    <dc:date>2016-12-17T00:18:29Z</dc:date>
    <item>
      <title>cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158533#M120928</link>
      <description>&lt;P&gt;since I have installed Ranger I cant create a table in HBASE using the following command, see the error below also.  &lt;/P&gt;&lt;P&gt;even though HBASE ranger plugin is not enabled .  I have the Kerberos ticket  &lt;/P&gt;&lt;PRE&gt;16/12/16 10:29:56 INFO mapreduce.HBaseImportJob: Creating missing HBase table AUDIT_TOUR
16/12/16 10:29:56 ERROR tool.ImportTool: Encountered IOException running import job: org.apache.hadoop.hbase.security.AccessDeniedException: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions (user=sami@abc.com, scope=default, params=[namespace=default,table=default:AUDIT_TOUR,family=TOUR],action=CREATE)
        at org.apache.hadoop.hbase.security.access.AccessController.requireNamespacePermission(AccessController.java:624)
        at org.apache.hadoop.hbase.security.access.AccessController.preCreateTable(AccessController.java:993)
        at org.apache.hadoop.hbase.master.MasterCoprocessorHost$11.call(MasterCoprocessorHost.java:222)
&lt;/PRE&gt;&lt;P&gt;command issued&lt;/P&gt;&lt;PRE&gt;sqoop import --connect "jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))" --username PATRON --password XXXX --table PATRON.AUDIT_TOUR_SMALL --hbase-table AUDIT_TOUR --column-family TOUR --hbase-row-key "TOUR_ID" --hbase-create-table --columns "PLAZA_ID,REV_DAY_ID,LANE_ID,HOST_EMP_ID" -m 1
&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Dec 2016 23:37:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158533#M120928</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-16T23:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158534#M120929</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;user "sami@abc.com" does not have permissions to create table in HBase. you need to set these permissions for this user in Ranger.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 00:18:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158534#M120929</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-12-17T00:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158535#M120930</link>
      <description>&lt;P&gt;but ranger plugin for HBASE is not enabled , why  Ranger permissions to be set then ?&lt;/P&gt;&lt;P&gt;and the HBASE security tab in Ranger is disabled for this reason . its not letting me set any privileges .&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 00:22:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158535#M120930</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-17T00:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158536#M120931</link>
      <description>&lt;P&gt;Since you have enabled kerberos, you need to grant permissions in HBase. Use hbase shell with grant command for that. &lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 01:02:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158536#M120931</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-12-17T01:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158537#M120932</link>
      <description>&lt;P&gt;can you please give me an example on how ? &lt;/P&gt;&lt;P&gt;also whats the role of HBASE ranger plugin if without it being enabled we still need to grant privileges?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 02:03:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158537#M120932</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-17T02:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158538#M120933</link>
      <description>&lt;P&gt;I tried to add privileges from HBASE its not letting me .&lt;/P&gt;&lt;PRE&gt;
hbase(main):003:0&amp;gt; [hdfs@hadoop1 ~]$ kinit hive
Password for hive@abc.com:
[hdfs@hadoop1 ~]$
[hdfs@hadoop1 ~]$
[hdfs@hadoop1 ~]$ hbase shell
HBase Shell; enter 'help&amp;lt;RETURN&amp;gt;' for list of supported commands.
Type "exit&amp;lt;RETURN&amp;gt;" to leave the HBase Shell
Version 1.1.2.2.5.0.0-1245, r53538b8ab6749cbb6fdc0fe448b89aa82495fb3f, Fri Aug 26 01:32:27 UTC 2016
hbase(main):001:0&amp;gt; whoami
hive@abc.com (auth:KERBEROS)
    groups: hadoop
hbase(main):002:0&amp;gt; grant 'sami', 'RWXCA'
ERROR: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions (user=hive@abc.com, scope=GLOBAL, action=ADMIN)
        at org.apache.hadoop.hbase.security.access.AccessController.requirePermission(AccessController.java:438)
        at org.apache.hadoop.hbase.security.access.AccessController.grant(AccessController.java:2216)
        at org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos$AccessControlService$1.grant(AccessControlProtos.java:9933)
        at org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos$AccessControlService.callMethod(AccessControlProtos.java:10097)
        at org.apache.hadoop.hbase.regionserver.HRegion.execService(HRegion.java:7716)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.execServiceOnRegion(RSRpcServices.java:1895)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.execService(RSRpcServices.java:1877)
        at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32299)
        at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2127)
        at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
        at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
        at java.lang.Thread.run(Thread.java:745)
Here is some help for this command:
Grant users specific rights.
Syntax : grant &amp;lt;user&amp;gt; &amp;lt;permissions&amp;gt; [&amp;lt;@namespace&amp;gt; [&amp;lt;table&amp;gt; [&amp;lt;column family&amp;gt; [&amp;lt;column qualifier&amp;gt;]]]
permissions is either zero or more letters from the set "RWXCA".
READ('R'), WRITE('W'), EXEC('X'), CREATE('C'), ADMIN('A')
Note: Groups and users are granted access in the same way, but groups are prefixed with an '@'
      character. In the same way, tables and namespaces are specified, but namespaces are
      prefixed with an '@' character.
For example:



&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Dec 2016 02:44:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158538#M120933</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-17T02:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158539#M120934</link>
      <description>&lt;P&gt;If you are not using ranger hbase policies to grant permission then you will have to use hbase shell to grant the permission.  Forexample,&lt;/P&gt;&lt;UL&gt;
	
&lt;LI&gt;R - represents read privilege.&lt;/LI&gt;	
&lt;LI&gt;W - represents write privilege.&lt;/LI&gt;	
&lt;LI&gt;X - represents execute privilege.&lt;/LI&gt;	
&lt;LI&gt;C - represents create privilege.&lt;/LI&gt;	
&lt;LI&gt;A - represents admin privilege.&lt;/LI&gt;&lt;/UL&gt;
&lt;PRE&gt; hbase(main):018:0&amp;gt; grant 'sami','RWXCA','default'
&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Dec 2016 02:50:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158539#M120934</guid>
      <dc:creator>dvillarreal</dc:creator>
      <dc:date>2016-12-17T02:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158540#M120935</link>
      <description>&lt;P&gt;you need to use the same command &lt;/P&gt;&lt;PRE&gt;grant 'sami', 'RWXCA'&lt;/PRE&gt;&lt;P&gt; but you need to run hbase shell with hbase kerberos ticket. Ranger is centralized platform to manage security on your cluster at one place.  &lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 03:01:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158540#M120935</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-12-17T03:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158541#M120936</link>
      <description>&lt;P&gt;this did the trick ..  &lt;/P&gt;&lt;PRE&gt;[root@hadoop1 ~]# klist -kte /etc/security/keytabs/hbase.headless.keytab
Keytab name: FILE:/etc/security/keytabs/hbase.headless.keytab
KVNO Timestamp         Principal
---- ----------------- --------------------------------------------------------
   1 11/30/16 14:40:25 hbase-fdot_hadoop@TOLLS.DOT.STATE.FL.US (arcfour-hmac)
   1 11/30/16 14:40:25 hbase-fdot_hadoop@TOLLS.DOT.STATE.FL.US (des3-cbc-sha1)
   1 11/30/16 14:40:25 hbase-fdot_hadoop@TOLLS.DOT.STATE.FL.US (aes256-cts-hmac-sha1-96)
   1 11/30/16 14:40:25 hbase-fdot_hadoop@TOLLS.DOT.STATE.FL.US (des-cbc-md5)
   1 11/30/16 14:40:25 hbase-fdot_hadoop@TOLLS.DOT.STATE.FL.US (aes128-cts-hmac-sha1-96)
kinit -kt /etc/security/keytabs/hbase.headless.keytab hbase-fdot_hadoop

hbase(main):002:0&amp;gt; grant 'sami', 'RWXCA'
0 row(s) in 0.4040 seconds
hbase(main):003:0&amp;gt; exit
[root@hadoop1 ~]#
&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Dec 2016 05:59:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158541#M120936</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-17T05:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158542#M120937</link>
      <description>&lt;PRE&gt;[root@m1 ~]# klist -kte /etc/security/keytabs/hbase.headless.keytab         
Keytab name: FILE:/etc/security/keytabs/hbase.headless.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 11/16/2016 13:50:23 hbase-tdh@TENDATA.CN (des-cbc-md5) 
   1 11/16/2016 13:50:23 hbase-tdh@TENDATA.CN (des3-cbc-sha1) 
   1 11/16/2016 13:50:23 hbase-tdh@TENDATA.CN (arcfour-hmac) 
   1 11/16/2016 13:50:23 hbase-tdh@TENDATA.CN (aes256-cts-hmac-sha1-96) 
   1 11/16/2016 13:50:23 hbase-tdh@TENDATA.CN (aes128-cts-hmac-sha1-96) 
[root@m1 ~]# 
[root@m1 ~]# kinit -kt /etc/security/keytabs/hbase.headless.keytab hbase-tdh
kinit: Password incorrect while getting initial credentials
&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;I did as you did, but there were mistakes.&lt;/P&gt;&lt;P&gt;What am I supposed to do&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 22:30:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158542#M120937</guid>
      <dc:creator>kiven517</dc:creator>
      <dc:date>2017-09-15T22:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158543#M120938</link>
      <description>&lt;P&gt;I looked at the other blog and compared it and found the difference. &lt;/P&gt;&lt;P&gt;After the new operation, it can be operated
&lt;/P&gt;&lt;P&gt;&lt;A href="https://discuss.pivotal.io/hc/en-us/articles/201998166-HBase-SQL-statement-fails-with-Insufficient-permissions-for-user"&gt;HBase SQL statement fails with Insufficient permissions for user&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;[root@m1 ~]# klist -ket /etc/security/keytabs/hbase.service.keytab 
Keytab name: FILE:/etc/security/keytabs/hbase.service.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (des-cbc-md5) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (des3-cbc-sha1) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (arcfour-hmac) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (aes256-cts-hmac-sha1-96) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (aes128-cts-hmac-sha1-96) 
[root@m1 ~]# kinit -kt /etc/security/keytabs/hbase.service.keytab hbase/m1.node.hadoop@TENDATA.CN
[root@m1 ~]# klist 
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: hbase/m1.node.hadoop@TENDATA.CN
Valid starting       Expires              Service principal
09/20/2017 16:23:53  09/21/2017 16:23:53  krbtgt/TENDATA.CN@TENDATA.CN
[root@m1 ~]# 
[root@m1 ~]# hbase shell
HBase Shell; enter 'help&amp;lt;RETURN&amp;gt;' for list of supported commands.
Type "exit&amp;lt;RETURN&amp;gt;" to leave the HBase Shell
Version 1.1.2.2.5.3.0-37, rcb8c969d1089f1a34e9df11b6eeb96e69bcf878d, Tue Nov 29 18:48:22 UTC 2016
hbase(main):001:0&amp;gt; 
hbase(main):002:0* 
hbase(main):003:0* create 't1', 'f1'
0 row(s) in 2.5960 seconds
=&amp;gt; Hbase::Table - t1
hbase(main):004:0&amp;gt; list
TABLE                                                                                                    
t1                                                                                                            
1 row(s) in 0.0200 seconds
=&amp;gt; ["t1"]
hbase(main):005:0&amp;gt; 
&lt;/PRE&gt;&lt;P&gt;The key is to get the KGT without domain and result in failure&lt;/P&gt;&lt;PRE&gt;kinit -kt /etc/security/keytabs/hbase.service.keytab hbase/m1.node.hadoop@TENDATA.CN&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:20:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158543#M120938</guid>
      <dc:creator>kiven517</dc:creator>
      <dc:date>2017-09-22T06:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: cant create HBASE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158544#M120939</link>
      <description>&lt;P&gt;I looked at the other blog and compared it and found the difference. &lt;/P&gt;&lt;P&gt;
After the new operation, it can be operated&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://discuss.pivotal.io/hc/en-us/articles/201998166-HBase-SQL-statement-fails-with-Insufficient-permissions-for-user"&gt;HBase SQL statement fails with Insufficient permissions for user&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;[root@m1 ~]# klist -ket /etc/security/keytabs/hbase.service.keytab 
Keytab name: FILE:/etc/security/keytabs/hbase.service.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (des-cbc-md5) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (des3-cbc-sha1) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (arcfour-hmac) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (aes256-cts-hmac-sha1-96) 
   1 11/16/2016 13:50:24 hbase/m1.node.hadoop@TENDATA.CN (aes128-cts-hmac-sha1-96) 
[root@m1 ~]# kinit -kt /etc/security/keytabs/hbase.service.keytab hbase/m1.node.hadoop@TENDATA.CN
[root@m1 ~]# klist 
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: hbase/m1.node.hadoop@TENDATA.CN




Valid starting       Expires              Service principal
09/20/2017 16:23:53  09/21/2017 16:23:53  krbtgt/TENDATA.CN@TENDATA.CN
[root@m1 ~]# 




[root@m1 ~]# hbase shell
HBase Shell; enter 'help&amp;lt;RETURN&amp;gt;' for list of supported commands.
Type "exit&amp;lt;RETURN&amp;gt;" to leave the HBase Shell
Version 1.1.2.2.5.3.0-37, rcb8c969d1089f1a34e9df11b6eeb96e69bcf878d, Tue Nov 29 18:48:22 UTC 2016




hbase(main):001:0&amp;gt; 
hbase(main):002:0* 
hbase(main):003:0* create 't1', 'f1'
0 row(s) in 2.5960 seconds




=&amp;gt; Hbase::Table - t1
hbase(main):004:0&amp;gt; list
TABLE                                                                                                    
t1                                                                                                            
1 row(s) in 0.0200 seconds




=&amp;gt; ["t1"]
hbase(main):005:0&amp;gt; 


&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;The key is to get the KGT without domain and result in failure&lt;/P&gt;&lt;PRE&gt;kinit -kt /etc/security/keytabs/hbase.service.keytab hbase/m1.node.hadoop@TENDATA.CN&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:20:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-create-HBASE-table/m-p/158544#M120939</guid>
      <dc:creator>kiven517</dc:creator>
      <dc:date>2017-09-22T06:20:40Z</dc:date>
    </item>
  </channel>
</rss>

