dengzhhu653 commented on code in PR #6024:
URL: https://github.com/apache/hive/pull/6024#discussion_r2271909600


##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/SecurityUtils.java:
##########
@@ -131,14 +166,22 @@ public AppConfigurationEntry[] 
getAppConfigurationEntry(String appName) {
         Map<String, String> krbOptions = new HashMap<String, String>();
         if (IBM_JAVA) {
           krbOptions.put("credsType", "both");
-          krbOptions.put("useKeytab", keyTabFile);
+          krbOptions.put("useDefaultCcache", "true");
+          if (keyTabFile != null) {
+            krbOptions.put("useKeytab", keyTabFile);
+          }
         } else {
           krbOptions.put("doNotPrompt", "true");
-          krbOptions.put("storeKey", "true");
-          krbOptions.put("useKeyTab", "true");
-          krbOptions.put("keyTab", keyTabFile);
+          krbOptions.put("useTicketCache", "true");
+          if (keyTabFile != null) {
+            krbOptions.put("storeKey", "true");
+            krbOptions.put("useKeyTab", "true");

Review Comment:
   if both `useTicketCache` and `useKeyTab` are true, how they work together?



-- 
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

Reply via email to