hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samir Ahmic (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-10186) region_mover.rb broken because ServerName constructor is changed to private
Date Tue, 17 Dec 2013 08:45:12 GMT

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

Samir Ahmic updated HBASE-10186:
--------------------------------

    Description: 
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. 


  was:
After upgrading to 0.96.1 (from 0.96.0) i have tried rolling restart with ./rolling-restart.sh
--graceful but region_mover.sh 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. 



> 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
>
> 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)

Mime
View raw message