Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F4079F61 for ; Wed, 16 Nov 2011 15:15:15 +0000 (UTC) Received: (qmail 80542 invoked by uid 500); 16 Nov 2011 15:15:15 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 80511 invoked by uid 500); 16 Nov 2011 15:15:15 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 80503 invoked by uid 99); 16 Nov 2011 15:15:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 15:15:14 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 15:15:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9906488D0F for ; Wed, 16 Nov 2011 15:14:51 +0000 (UTC) Date: Wed, 16 Nov 2011 15:14:51 +0000 (UTC) From: "Ted Yu (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <1603864424.35078.1321456491628.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <469711310.33274.1321402431489.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-4793) HBase shell still using deprecated methods removed in HBASE-4436 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-4793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-4793: -------------------------- Priority: Critical (was: Blocker) Lowering priority before we find the next broken shell command. > HBase shell still using deprecated methods removed in HBASE-4436 > ---------------------------------------------------------------- > > Key: HBASE-4793 > URL: https://issues.apache.org/jira/browse/HBASE-4793 > Project: HBase > Issue Type: Bug > Components: shell > Affects Versions: 0.92.0, 0.94.0 > Reporter: Gary Helmling > Priority: Critical > Fix For: 0.92.0 > > Attachments: 4793.txt > > > The patch applied in HBASE-4622 (subtask of HBASE-4436) to remove deprecated methods seems to have missed some usage of those methods by the HBase shell. At least src/main/ruby/hbase/admin.rb is still using some of the removed methods, breaking some shell commands: > {noformat} > hbase(main):007:0> alter 'privatetable', { NAME => 'f1', VERSIONS => 2} > ERROR: wrong number of arguments (3 for 2) > Backtrace: /usr/lib/hbase/bin/../bin/../lib/ruby/hbase/admin.rb:344:in `alter' > org/jruby/RubyArray.java:1572:in `each' > /usr/lib/hbase/bin/../bin/../lib/ruby/hbase/admin.rb:317:in `alter' > /usr/lib/hbase/bin/../bin/../lib/ruby/shell/commands/alter.rb:79:in `command' > /usr/lib/hbase/bin/../bin/../lib/ruby/shell/commands.rb:68:in `format_simple_command' > /usr/lib/hbase/bin/../bin/../lib/ruby/shell/commands/alter.rb:78:in `command' > /usr/lib/hbase/bin/../bin/../lib/ruby/shell/commands.rb:31:in `command_safe' > /usr/lib/hbase/bin/../bin/../lib/ruby/shell/commands.rb:74:in `translate_hbase_exceptions' > /usr/lib/hbase/bin/../bin/../lib/ruby/shell/commands.rb:31:in `command_safe' > /usr/lib/hbase/bin/../bin/../lib/ruby/shell.rb:110:in `command' > (eval):2:in `alter' > {noformat} > This trace translates to the line: > {code} > @admin.modifyColumn(table_name, column_name, descriptor) > {code} > which is calling one of the removed methods. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira