def vacate_region_server(args, ip, port):
  package_root = deploy_utils.get_artifact_package_root(args,
      args.hbase_config.cluster, "hbase")
  Log.print_info("Vacate region server: " + ip);
  try:
    host = socket.gethostbyaddr(ip)[0]
  except:
    host = ip
  args.command = ["ruby", "%s/bin/region_mover.rb" % package_root,
    "unload", "%s:%d" % (host, port)]
  if run_shell(args) != 0:
    Log.print_critical("Unload host %s failed." % host);
dataset/ETHPy150Open XiaoMi/minos/client/deploy_hbase.py/vacate_region_server/original