public static String getZookeeperHost(final String zookeeperUrl) {
        if (Objects.isNull(zookeeperUrl) || zookeeperUrl.isEmpty()) {
            return null;
        }
        try {
            URI uri = new URI(zookeeperUrl);
            String scheme = uri.getScheme();
            if (Objects.nonNull(scheme) && ("zookeeper".equals(scheme) || "zk".equals(scheme))) {
                return uri.getHost();
            }
        } catch (URISyntaxException ignored) {
        }

        String[] parts = zookeeperUrl.split(":");
        if (parts.length >= 1) {
            return parts[0];
        }
        return null;
    }
get Zookeeper Url.
@param zookeeperUrl zookeeperUrl.
@return ip form zookeeperUrl
shenyu-common/src/main/java/org/apache/shenyu/common/utils/IpUtils.java