public static InetAddress lookForBindHost(String prefix) {
    if (prefix.startsWith("0")) {
      throw new RuntimeException(
          "config " + AmoroManagementConf.SERVER_EXPOSE_HOST.key() + " can't start with 0");
    }
    try {
      Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
      while (networkInterfaces.hasMoreElements()) {
        NetworkInterface networkInterface = networkInterfaces.nextElement();
        for (Enumeration<InetAddress> enumeration = networkInterface.getInetAddresses();
            enumeration.hasMoreElements(); ) {
          InetAddress inetAddress = enumeration.nextElement();
          if (checkHostAddress(inetAddress, prefix)) {
            return inetAddress;
          }
        }
      }
      throw new IllegalArgumentException("Can't find host address start with " + prefix);
    } catch (Exception e) {
      throw new RuntimeException("Look for bind host failed", e);
    }
  }
Convert size to a different unit, ensuring that the converted value is > 1
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/utils/AmsUtil.java