hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject git commit: HBASE-12118 Explain how to grant permission to a namespace in grant command usage
Date Tue, 30 Sep 2014 15:05:26 GMT
Repository: hbase
Updated Branches:
  refs/heads/master aa432fd68 -> 02cdcefe4

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/02cdcefe
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/02cdcefe
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/02cdcefe

Branch: refs/heads/master
Commit: 02cdcefe4fd738a969863e599f29c1faae6fec12
Parents: aa432fd
Author: stack <stack@apache.org>
Authored: Tue Sep 30 08:05:18 2014 -0700
Committer: stack <stack@apache.org>
Committed: Tue Sep 30 08:05:18 2014 -0700

 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 43fb720..e881baa 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
+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'

View raw message