dengzhhu653 commented on code in PR #6024: URL: https://github.com/apache/hive/pull/6024#discussion_r2286722824
########## jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java: ########## @@ -128,6 +126,13 @@ private static CuratorFramework getZkClient(JdbcConnectionParams connParams) thr connParams.getZookeeperTrustStoreLocation(), connParams.getZookeeperTrustStorePassword(), connParams.getZookeeperTrustStoreType())) .build(); + + Map<String, String> sessionVars = connParams.getSessionVars(); + // If the client is requesting the Kerberos, then the ZooKeeper is mostly Kerberos-secured + if (sessionVars.containsKey(JdbcConnectionParams.AUTH_PRINCIPAL) && + Boolean.parseBoolean(sessionVars.getOrDefault(HiveConf.ConfVars.HIVE_ZOOKEEPER_USE_KERBEROS.varname, "true"))) { Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org