Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase Grant error

HBase Grant error

New Contributor

Hi All,

 

Trying to grant priviges for a user using grant on a namespace or table throws Hbase ACL Error

 

hbase> grant 'avinash', 'RWXCA', '@test_namespace'

 

Just throws the following error:

 

ERROR: hbase:acl

Here is some help for this command:
Grant users specific rights.
Syntax : grant <user>, <permissions> [, <@namespace> [, <table> [, <column family> [, <column qualifier>]]]

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:

hbase> grant 'bobsmith', 'RWXCA'
hbase> grant '@admins', 'RWXCA'
hbase> grant 'bobsmith', 'RWXCA', '@ns1'
hbase> grant 'bobsmith', 'RW', 't1', 'f1', 'col1'
hbase> grant 'bobsmith', 'RW', 'ns1:t1', 'f1', 'col1'

 

 

No additional info in logs.

Any Idea? 

 

Thanks,

Avinash

2 REPLIES 2

Re: HBase Grant error

New Contributor

I have the same problem, hbase lost the acl table

 

hbase> desc 'hbase:acl'
ERROR: Unknown table hbase:acl!

 

hbase> create 'hbase:acl', {NAME => 'l'}
ERROR: Table already exists: hbase:acl!

 

does someone have the same error?

Re: HBase Grant error

New Contributor

I found a solution, in my case the table directory /hbase/data/hbase/acl was deleted accidentally from hdfs. To recreate the hbase:acl I run this steps:

 

1.- run "hbase zkcli" and execute the command: "delete /hbase/table/hbase:acl"

2.- run "hbase shell" and execute the command: "create 'hbase:acl', {NAME => 'l'}"

 

The acl configuration lost but now you can create grants again