gaborgsomogyi commented on code in PR #26101:
URL: https://github.com/apache/flink/pull/26101#discussion_r1941660983
##########
flink-runtime/src/main/java/org/apache/flink/runtime/security/token/hadoop/HadoopFSDelegationTokenProvider.java:
##########
@@ -110,7 +110,10 @@ public ObtainedDelegationTokens obtainDelegationTokens()
throws Exception {
return freshUGI.doAs(
(PrivilegedExceptionAction<ObtainedDelegationTokens>)
() -> {
- Credentials credentials = new Credentials();
+ LOG.debug("Loading delegation tokens available to
UGI current user");
+ Credentials credentials =
+ new Credentials(
+
UserGroupInformation.getCurrentUser().getCredentials());
Review Comment:
Adding current user here would change the behaviour so that Hadoop FS
provider would send out Kudu or any other tokens to providers which Hadoop
supports. That's not something what I'm comfortable with based on my current
knowledge.
--
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]