From b58a2df32e02944e6066e8b49e27de8065d96b2c Mon Sep 17 00:00:00 2001 From: Ashish Singhi Date: Tue, 30 Sep 2014 11:09:25 +0530 Subject: [PATCH] HBASE-12118-1 --- hbase-shell/src/main/ruby/shell/commands/grant.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbase-shell/src/main/ruby/shell/commands/grant.rb b/hbase-shell/src/main/ruby/shell/commands/grant.rb index 89fdde6..0e8a65c 100644 --- a/hbase-shell/src/main/ruby/shell/commands/grant.rb +++ b/hbase-shell/src/main/ruby/shell/commands/grant.rb @@ -22,14 +22,17 @@ module Shell def help return <<-EOF Grant users specific rights. -Syntax : grant [ [ []] +Syntax : grant [<@namespace> [
[ []]] 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 -- 1.9.2.msysgit.0