HBASE-5307 Unable to gracefully decommission a node because of script error

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1238878 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-02-01 00:28:46 +00:00
parent e5a38bed76
commit a87e1ad952
1 changed files with 2 additions and 2 deletions

View File

@ -251,8 +251,8 @@ end
# Now get list of regions on targetServer
def getRegions(config, servername)
connection = HConnectionManager::getConnection(config)
hsa = HServerAddress.new(getHostnamePortFromServerName(servername))
rs = connection.getHRegionConnection(hsa)
parts = servername.split(',')
rs = connection.getHRegionConnection(parts[0], parts[1].to_i)
return rs.getOnlineRegions()
end