public String getOneHttpUrl() throws Exception {
        getHttpHosts();
        if (!httpHosts.isEmpty() && httpHosts.size() > 0) {
            return httpHosts.get(rand.nextInt(httpHosts.size())).toString();
        }
        throw new Exception("http hosts is empty! please check hosts!");
    }
Get one http url.

@return a http url
@throws Exception any exception if occurred
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchConfig.java