Repository: hbase
Updated Branches:
  refs/heads/0.98 c220be925 -> 2968d385e


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


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2968d385
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2968d385
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2968d385

Branch: refs/heads/0.98
Commit: 2968d385e65b6ae4737258bdd4fcfbb0d2bb6cdd
Parents: c220be9
Author: stack <st...@apache.org>
Authored: Tue Sep 30 08:05:18 2014 -0700
Committer: stack <st...@apache.org>
Committed: Tue Sep 30 08:06:08 2014 -0700

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell/commands/grant.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2968d385/hbase-shell/src/main/ruby/shell/commands/grant.rb
----------------------------------------------------------------------
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 <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

Reply via email to