Repository: hbase Updated Branches: refs/heads/0.94 18ce81375 -> dfcf767ae
HBASE-10834 Better error messaging on issuing grant commands in non-authz mode (Srikanth Srungarapu) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/dfcf767a Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/dfcf767a Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/dfcf767a Branch: refs/heads/0.94 Commit: dfcf767ae21548f65851044440381dd72e4cccf2 Parents: 18ce813 Author: Jimmy Xiang <[email protected]> Authored: Thu Aug 14 09:00:45 2014 -0700 Committer: Jimmy Xiang <[email protected]> Committed: Thu Aug 14 09:00:45 2014 -0700 ---------------------------------------------------------------------- src/main/ruby/hbase/security.rb | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/dfcf767a/src/main/ruby/hbase/security.rb ---------------------------------------------------------------------- diff --git a/src/main/ruby/hbase/security.rb b/src/main/ruby/hbase/security.rb index 5041ec4..ce452d1 100644 --- a/src/main/ruby/hbase/security.rb +++ b/src/main/ruby/hbase/security.rb @@ -182,6 +182,8 @@ module Hbase rescue NameError raise(ArgumentError, "DISABLED: Security features are not available in this build of HBase") end + raise(ArgumentError, "Command not supported as authorization is turned off ") \ + unless exists?(org.apache.hadoop.hbase.security.access.AccessControlLists::ACL_TABLE_NAME) end end
