Details
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:
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
After checking region_mover.rb i believe this line:
return ProtobufUtil::getOnlineRegions(connection.getAdmin(ServerName.new(servername)));
should be changed to
return ProtobufUtil::getOnlineRegions(connection.getAdmin(ServerName.valueOf(servername)));
After making this change region_mover.rb is working again. I will attach patch shortly.
Attachments
Attachments
Issue Links
- is broken by
-
HBASE-10012 Hide ServerName constructor
- Closed