HBASE-13633 draining_servers.rb broken with NoMethodError: undefined method 'getServerInfo' (Samir Ahmic)

This commit is contained in:
tedyu 2015-05-06 09:28:23 -07:00
parent a93ba89b5b
commit 67c6352e8a
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ optparse.parse!
# Return array of servernames where servername is hostname+port+startcode
# comma-delimited
def getServers(admin)
serverInfos = admin.getClusterStatus().getServerInfo()
serverInfos = admin.getClusterStatus().getServers()
servers = []
for server in serverInfos
servers << server.getServerName()