public static boolean isZkDynamicDiscoveryMode(Map<String, String> sessionConf) {
    final String discoveryMode = sessionConf.get(JdbcConnectionParams.SERVICE_DISCOVERY_MODE);
    return (discoveryMode != null)
      && (JdbcConnectionParams.SERVICE_DISCOVERY_MODE_ZOOKEEPER.equalsIgnoreCase(discoveryMode) ||
      JdbcConnectionParams.SERVICE_DISCOVERY_MODE_ZOOKEEPER_HA.equalsIgnoreCase(discoveryMode));
  }
Returns true is any service discovery mode is enabled (HA or non-HA)

@param sessionConf - session configuration
@return true if serviceDiscoveryMode is specified in JDBC URI
jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java