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 823E9108ED for ; Tue, 17 Dec 2013 13:06:15 +0000 (UTC) Received: (qmail 93164 invoked by uid 500); 17 Dec 2013 13:06:13 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 92751 invoked by uid 500); 17 Dec 2013 13:06:10 -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 92317 invoked by uid 99); 17 Dec 2013 13:06:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 13:06:08 +0000 Date: Tue, 17 Dec 2013 13:06:08 +0000 (UTC) From: "Jonathan Hsieh (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-10186) region_mover.rb broken because ServerName constructor is changed to private 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-10186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Hsieh resolved HBASE-10186. ------------------------------------ Resolution: Fixed Fix Version/s: 0.99.0 0.96.2 0.98.0 Hadoop Flags: Reviewed > region_mover.rb broken because ServerName constructor is changed to private > --------------------------------------------------------------------------- > > Key: HBASE-10186 > URL: https://issues.apache.org/jira/browse/HBASE-10186 > Project: HBase > Issue Type: Bug > Components: scripts > Affects Versions: 0.96.1 > Environment: x86_64 GNU/Linux > Reporter: Samir Ahmic > Assignee: Samir Ahmic > Fix For: 0.98.0, 0.96.2, 0.99.0 > > Attachments: HBASE-10186.patch > > > After upgrading to 0.96.1 (from 0.96.0) i have tried rolling restart with ./rolling-restart.sh --graceful but region_mover.rb throws error: > {code} > TypeError: no public constructors for Java::OrgApacheHadoopHbase::ServerName > getRegions at ./region_mover.rb:257 > unloadRegions at ./region_mover.rb:318 > (root) at ./region_mover.rb:461 > {code} > After checking region_mover.rb i believe this line: > {code} > return ProtobufUtil::getOnlineRegions(connection.getAdmin(ServerName.new(servername))); > {code} > should be changed to > {code} > return ProtobufUtil::getOnlineRegions(connection.getAdmin(ServerName.valueOf(servername))); > {code} > After making this change region_mover.rb is working again. I will attach patch shortly. -- This message was sent by Atlassian JIRA (v6.1.4#6159)