From 54319e4e591ba464fc5ce09579ca8f077c51bd0a Mon Sep 17 00:00:00 2001 From: Ashish Singhi Date: Tue, 30 Sep 2014 10:20:04 +0530 Subject: [PATCH] HBASE-12098 --- hbase-shell/src/main/ruby/shell/commands/grant.rb | 3 ++- 1 file changed, 2 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..e3da15b 100644 --- a/hbase-shell/src/main/ruby/shell/commands/grant.rb +++ b/hbase-shell/src/main/ruby/shell/commands/grant.rb @@ -22,7 +22,7 @@ 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') @@ -30,6 +30,7 @@ READ('R'), WRITE('W'), EXEC('X'), CREATE('C'), ADMIN('A') 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