wForget commented on code in PR #24891:
URL: https://github.com/apache/flink/pull/24891#discussion_r1628934380


##########
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java:
##########
@@ -1374,6 +1374,13 @@ private void setTokensFor(ContainerLaunchContext 
containerLaunchContext, boolean
             for (Map.Entry<String, byte[]> e : 
container.getTokens().entrySet()) {
                 if (e.getKey().equals("hadoopfs")) {
                     
credentials.addAll(HadoopDelegationTokenConverter.deserialize(e.getValue()));
+                } else {
+                    // Add hdfs tokens, maybe fetched by custom 
DelegationTokenProvider
+                    Credentials fetchedCredentials =
+                            
HadoopDelegationTokenConverter.deserialize(e.getValue());

Review Comment:
   Thanks @gaborgsomogyi , I added a 
`yarn.security.appmaster.delegation.token.services` configuration to set token 
services we need for yarn am, and added unit test.



-- 
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]

Reply via email to