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 <[email protected]> Authored: Tue Sep 30 08:05:18 2014 -0700 Committer: stack <[email protected]> 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(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/02cdcefe/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 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 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
