yuqi1129 commented on code in PR #5165:
URL: https://github.com/apache/gravitino/pull/5165#discussion_r1805785633
##########
catalogs/catalog-hadoop/src/main/java/org/apache/gravitino/catalog/hadoop/authentication/kerberos/KerberosClient.java:
##########
@@ -63,6 +63,12 @@ public String login(String keytabFilePath) throws
IOException {
Preconditions.checkArgument(
principalComponents.size() == 2, "The principal has the wrong format");
+ // Set Kerberos krb file
+ String krbFilePath = kerberosConfig.getKrb5Conf();
+ Preconditions.checkArgument(
+ StringUtils.isNotBlank(krbFilePath), "The Kerberos krb file can't be
blank");
+ System.setProperty("java.security.krb5.conf", krbFilePath);
Review Comment:
I mean if we set the value in `catalogA`, and in catalogB, could we still
get the value if `catalogB` does not set it?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]