public static List<String> getAllUrlStrings(String zookeeperBasedHS2Url) throws Exception {
    List<String> jdbcUrls = new ArrayList<>();
    List<JdbcConnectionParams> allConnectionParams = getAllUrls(zookeeperBasedHS2Url);
    for (JdbcConnectionParams cp : allConnectionParams) {
      String jdbcUrl = makeDirectJDBCUrlFromConnectionParams(cp);
      if ((jdbcUrl != null) && (!jdbcUrl.isEmpty())) {
        jdbcUrls.add(jdbcUrl);
      }
    }
    return jdbcUrls;
  }
Get all direct HiveServer2 URLs from a ZooKeeper based HiveServer2 URL
@param zookeeperBasedHS2Url
@return
@throws Exception
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java