tyoushinya commented on code in PR #5165:
URL: https://github.com/apache/gravitino/pull/5165#discussion_r1805781804
##########
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:
The configuration is separated for each catalog, this mean the setting of
catalogA can not affect catalogB.
--
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]