You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2018/03/13 09:57:49 UTC

hbase git commit: HBASE-19802 Wrong usage messages on shell commands (grant/revoke namespace syntax) (Csaba Skrabak)

Repository: hbase
Updated Branches:
  refs/heads/master d824bace4 -> b037db4e8


HBASE-19802 Wrong usage messages on shell commands (grant/revoke namespace syntax) (Csaba Skrabak)


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

Branch: refs/heads/master
Commit: b037db4e876715a9f11e6730e040833515483f1c
Parents: d824bac
Author: Peter Somogyi <ps...@apache.org>
Authored: Tue Mar 13 10:55:00 2018 +0100
Committer: Peter Somogyi <ps...@apache.org>
Committed: Tue Mar 13 10:56:34 2018 +0100

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/shell/commands/grant.rb  | 5 +++--
 hbase-shell/src/main/ruby/shell/commands/revoke.rb | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b037db4e/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 956489a..b5ee4ab 100644
--- a/hbase-shell/src/main/ruby/shell/commands/grant.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/grant.rb
@@ -22,13 +22,14 @@ module Shell
       def help
         <<-EOF
 Grant users specific rights.
-Syntax : grant <user>, <permissions> [, <@namespace> [, <table> [, <column family> [, <column qualifier>]]]
+Syntax: grant <user or @group>, <permissions> [, <table> [, <column family> [, <column qualifier>]]]
+Syntax: grant <user or @group>, <permissions>, <@namespace>
 
 permissions is either zero or more letters from the set "RWXCA".
 READ('R'), WRITE('W'), EXEC('X'), CREATE('C'), ADMIN('A')
 
 Note: Groups and users are granted access in the same way, but groups are prefixed with an '@'
-      character. In the same way, tables and namespaces are specified, but namespaces are
+      character. Tables and namespaces are specified the same way, but namespaces are
       prefixed with an '@' character.
 
 For example:

http://git-wip-us.apache.org/repos/asf/hbase/blob/b037db4e/hbase-shell/src/main/ruby/shell/commands/revoke.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/shell/commands/revoke.rb b/hbase-shell/src/main/ruby/shell/commands/revoke.rb
index 3f4963d..4742bd7 100644
--- a/hbase-shell/src/main/ruby/shell/commands/revoke.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/revoke.rb
@@ -22,10 +22,11 @@ module Shell
       def help
         <<-EOF
 Revoke a user's access rights.
-Syntax : revoke <user> [, <@namespace> [, <table> [, <column family> [, <column qualifier>]]]]
+Syntax: revoke <user or @group> [, <table> [, <column family> [, <column qualifier>]]]
+Syntax: revoke <user or @group>, <@namespace>
 
 Note: Groups and users access are revoked in the same way, but groups are prefixed with an '@'
-      character. In the same way, tables and namespaces are specified, but namespaces are
+      character. Tables and namespaces are specified the same way, but namespaces are
       prefixed with an '@' character.
 
 For example: