HBASE-13633 draining_servers.rb broken with NoMethodError: undefined method 'getServerInfo' (Samir Ahmic)
This commit is contained in:
parent
a93ba89b5b
commit
67c6352e8a
|
@ -50,7 +50,7 @@ optparse.parse!
|
||||||
# Return array of servernames where servername is hostname+port+startcode
|
# Return array of servernames where servername is hostname+port+startcode
|
||||||
# comma-delimited
|
# comma-delimited
|
||||||
def getServers(admin)
|
def getServers(admin)
|
||||||
serverInfos = admin.getClusterStatus().getServerInfo()
|
serverInfos = admin.getClusterStatus().getServers()
|
||||||
servers = []
|
servers = []
|
||||||
for server in serverInfos
|
for server in serverInfos
|
||||||
servers << server.getServerName()
|
servers << server.getServerName()
|
||||||
|
|
Loading…
Reference in New Issue