static void configureConnParamsFromZooKeeper(JdbcConnectionParams connParams)
      throws ZooKeeperHiveClientException, JdbcUriParseException {
    ZooKeeperHiveClientHelper.configureConnParams(connParams);
    String authorityStr = IPStackUtils.concatHostPort(connParams.getHost(), connParams.getPort());
    LOG.debug("Resolved authority: " + authorityStr);
    String jdbcUriString = connParams.getJdbcUriString();
    // Replace ZooKeeper ensemble from the authority component of the JDBC Uri provided by the
    // client, by the host:port of the resolved server instance we will connect to
    connParams.setJdbcUriString(
        jdbcUriString.replace(getAuthorityFromJdbcURL(jdbcUriString), authorityStr));
  }
This method handles the base parsing of the given jdbc uri. Some of JdbcConnectionParams
returned from this method are updated if ZooKeeper is used for service discovery

@param uri
@param info
@return
@throws JdbcUriParseException
jdbc/src/java/org/apache/hive/jdbc/Utils.java