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:
parent
e5a38bed76
commit
a87e1ad952
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue