Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3D751024D for ; Thu, 29 Aug 2013 00:11:54 +0000 (UTC) Received: (qmail 76113 invoked by uid 500); 29 Aug 2013 00:11:53 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 76035 invoked by uid 500); 29 Aug 2013 00:11:53 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 75984 invoked by uid 99); 29 Aug 2013 00:11:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 00:11:53 +0000 Date: Thu, 29 Aug 2013 00:11:53 +0000 (UTC) From: "Ted Yu (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-9284) user_permission.rb uses wrong argument types for ProtobufUtil#getUserPermissions() call MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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