dmvk commented on a change in pull request #18664:
URL: https://github.com/apache/flink/pull/18664#discussion_r802904390
##########
File path:
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java
##########
@@ -1245,6 +1258,21 @@ private ApplicationReport startAppMaster(
return report;
}
+ private void setTokensFor(ContainerLaunchContext containerLaunchContext)
throws IOException {
+ LOG.info("Adding delegation tokens to the AM container.");
+
+ Credentials credentials =
UserGroupInformation.getCurrentUser().getCredentials();
+
+ DelegationTokenManager delegationTokenManager =
+ new DelegationTokenManager(flinkConfiguration);
+ delegationTokenManager.obtainDelegationTokens(credentials);
Review comment:
I meant, that it probably needs to open some kind of kerberos client
underneath that needs to be closed
--
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]