You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2013/08/21 19:39:53 UTC

[jira] [Commented] (HBASE-9284) user_permission.rb uses wrong argument types for ProtobufUtil#getUserPermissions() call

    [ https://issues.apache.org/jira/browse/HBASE-9284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13746618#comment-13746618 ] 

Ted Yu commented on HBASE-9284:
-------------------------------

The intention of the ProtobufUtil.getUserPermissions() call mentioned above is to obtain permissions for Namespace specified by table_name argument.

A new method can be added to ProtobufUtil for such query.
                
> user_permission.rb uses wrong argument types for ProtobufUtil#getUserPermissions() call
> ---------------------------------------------------------------------------------------
>
>                 Key: HBASE-9284
>                 URL: https://issues.apache.org/jira/browse/HBASE-9284
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.95.2
>            Reporter: Ted Yu
>
> In security.rb, line 187:
> {code}
>             perms = org.apache.hadoop.hbase.protobuf.ProtobufUtil.getUserPermissions(
>               protocol, table_name.to_java_bytes)
> {code}
> the call results in the following exception:
> {code}
> ERROR: no method 'getUserPermissions' for arguments (org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingStub,org.jruby.java.proxies.ArrayJavaProxy) on Java::OrgApacheHadoopHbaseProtobuf::ProtobufUtil
> Backtrace: /usr/lib/hbase/bin/../lib/ruby/hbase/security.rb:147:in `user_permission'
>            /usr/lib/hbase/bin/../lib/ruby/shell/commands/user_permission.rb:39:in `command'
>            org/jruby/RubyKernel.java:2109:in `send'
>            /usr/lib/hbase/bin/../lib/ruby/shell/commands.rb:34:in `command_safe'
>            /usr/lib/hbase/bin/../lib/ruby/shell/commands.rb:87:in `translate_hbase_exceptions'
>            /usr/lib/hbase/bin/../lib/ruby/shell/commands.rb:34:in `command_safe'
>            /usr/lib/hbase/bin/../lib/ruby/shell.rb:123:in `internal_command'
>            /usr/lib/hbase/bin/../lib/ruby/shell.rb:115:in `command'
>            (eval):2:in `user_permission'
>            (hbase):1:in `evaluate'
>            org/jruby/RubyKernel.java:1112:in `eval'
> {code}
> The two argument method expects TableName for the second parameter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira