public static boolean telnetOrPing(String addresses) {
    String[] split = addresses.split(",");
    for (String address : split) {
      String[] info = address.split(":");
      if (info.length < 2) {
        String[] ip = info[0].split("/");
        if (ping(ip[0])) {
          return true;
        } else {
          continue;
        }
      }
      String[] portSplit = info[1].split("/");
      int port;
      try {
        port = Integer.parseInt(portSplit[0]);
      } catch (NumberFormatException e) {
        throw new IllegalArgumentException(portSplit[0] + " is not port");
      }
      if (telnet(info[0], port)) {
        return true;
      }
    }
    return false;
  }
@param addresses support type 127.0.0.1:2181/ddd,host2:2181,host3:2181/service or
    music-hbase64.jd.163.org,music-hbase65.jd.163.org,
    music-hbase66.jd.163.org/hbase-music-feature-jd
@return true if success
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/utils/CommonUtil.java