Reply
New Contributor
Posts: 2
Registered: ‎04-19-2016

HBase Grant error

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

New Contributor
Posts: 2
Registered: ‎06-17-2015

Re: HBase Grant error

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?

New Contributor
Posts: 2
Registered: ‎06-17-2015

Re: HBase Grant error

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

Announcements

Our community is getting a little larger. And a lot better.


Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.