HBASE-12118 Explain how to grant permission to a namespace in grant command usage

This commit is contained in:
stack 2014-09-30 08:05:18 -07:00
parent aa432fd68f
commit 02cdcefe4f
1 changed files with 4 additions and 1 deletions

View File

@ -22,14 +22,17 @@ module Shell
def help
return <<-EOF
Grant users specific rights.
Syntax : grant <user> <permissions> [<table> [<column family> [<column qualifier>]]
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: A namespace must always precede with '@' character.
For example:
hbase> grant 'bobsmith', 'RWXCA'
hbase> grant 'bobsmith', 'RWXCA', '@ns1'
hbase> grant 'bobsmith', 'RW', 't1', 'f1', 'col1'
hbase> grant 'bobsmith', 'RW', 'ns1:t1', 'f1', 'col1'
EOF