public static boolean ping(String ip) {
    try {
      return InetAddress.getByName(ip).isReachable(500);
    } catch (Exception e) {
      LOG.warn("ping {} timeout! ", ip);
      return false;
    }
  }
@param host host
@param port port
@return true if success
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/utils/CommonUtil.java