World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#6745] fix(client,authn): Fix the No key to store error when Running the Spark connector with a Kerberos ticket cache (#6753)
gavin.wangf6564946bdeb
diff --git a/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.java b/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.javaindex 690ecf38cc..78b40a813c 100644--- a/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.java+++ b/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.java@@ -122,18 +122,18 @@ public class KerberosUtils {options.put("useKeyTab", "true");options.put("keyTab", keyTabFile);options.put("storeKey", "true");+ } else {+ options.put("useTicketCache", "true");+ String ticketCache = System.getenv("KRB5CCNAME");+ if (ticketCache != null) {+ options.put("ticketCache", ticketCache);+ }+ options.put("renewTGT", "true");}-options.put("principal", principal);options.put("doNotPrompt", "true");- options.put("useTicketCache", "true");- options.put("renewTGT", "true");options.put("refreshKrb5Config", "true");options.put("isInitiator", "true");- String ticketCache = System.getenv("KRB5CCNAME");- if (ticketCache != null) {- options.put("ticketCache", ticketCache);- }options.put("debug", "true");return new AppConfigurationEntry[] {