granewang commented on code in PR #6778:
URL: https://github.com/apache/gravitino/pull/6778#discussion_r2020320807
##########
server-common/src/main/java/org/apache/gravitino/server/authentication/KerberosAuthenticator.java:
##########
@@ -171,13 +169,7 @@ private Principal retrievePrincipalFromToken(String
serverPrincipal, byte[] clie
}
// Usually principal names are in the form 'user/instance@REALM' or
'user@REALM'.
Review Comment:
> causes the error
The principal in this format: user/host, causes the error.
When submitting a task, the principal specified through the --conf
spark.kerberos.principal parameter is in the format of user/host@realm.
However, in the HiveMetaStore$HMSHandler.get_delegation_token method of the
HMS, the format of the owner parameter is user/host without the @realm part.
This is where the problem arises.
--
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]