dengzhhu653 commented on code in PR #6024: URL: https://github.com/apache/hive/pull/6024#discussion_r2286729779
########## shims/common/src/main/java/org/apache/hadoop/hive/shims/Utils.java: ########## @@ -73,15 +89,46 @@ public static UserGroupInformation getUGI() throws LoginException, IOException { return UserGroupInformation.getCurrentUser(); } + /** + * This is used for Jdbc client to authenticate with zk, where we don't know the exact principal. + * @throws Exception + */ + public static void setZookeeperClientKerberosJaasConfig() throws IOException { Review Comment: We can get the current UGI by UserGroupInformation.getLoginUser -- 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