hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-9284) user_permission.rb uses wrong argument types for ProtobufUtil#getUserPermissions() call
Date Thu, 29 Aug 2013 00:11:53 GMT

     [ https://issues.apache.org/jira/browse/HBASE-9284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu resolved HBASE-9284.
---------------------------

    Resolution: Cannot Reproduce
    
> 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

Mime
View raw message