Stephen Chu created HBASE-6232:
----------------------------------
Summary: HBase security commands should have a better error when
used in insecure mode
Key: HBASE-6232
URL: https://issues.apache.org/jira/browse/HBASE-6232
Project: HBase
Issue Type: Bug
Components: security
Affects Versions: 0.92.1
Reporter: Stephen Chu
I'm playing with the hbase shell's security commands and see the following.
{noformat}
hbase(main):002:0> grant 'schu', 'R', 'testtb', 'cf'
ERROR: Unknown table schu!
Here is some help for this command:
Grant users specific rights.
Syntax : grant <user> <permissions> <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')
For example:
hbase> grant 'bobsmith', 'RWXCA'
hbase> grant 'bobsmith', 'RW', 't1', 'f1', 'col1'
hbase(main):003:0>
{noformat}
{noformat}
hbase(main):012:0> revoke 'schu', 'testtb', 'cf'
ERROR: Unknown table schu!
Here is some help for this command:
Revoke a user's access rights.
Syntax : revoke <user> <table> <column family> <column qualifier>
For example:
hbase> revoke 'bobsmith', 't1', 'f1', 'col1'
hbase(main):013:0>
{noformat}
{noformat}
hbase(main):013:0> user_permission 'testtb'
User Table,Family,Qualifier:Permission
ERROR: Unknown table testtb!
Here is some help for this command:
Show all permissions for the particular user.
Syntax : user_permission <table>
For example:
hbase> user_permission
hbase> user_permission 'table1'
{noformat}
Seems it just returns ERROR: Unknown table <first argument>
schu is the user, not the table.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira