Skip to content

Commit 5df56aa

Browse files
committed
[FLINK-21700][yarn]Allow to disable fetching Hadoop delegation token on Yarn
Change-Id: Ia4c246f80771ebd7474753a271fb3c1a56cc184d
1 parent 76ca3d3 commit 5df56aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

flink-yarn/src/main/java/org/apache/flink/yarn/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,8 @@ static ContainerLaunchContext createTaskExecutorContext(
564564
Collection<Token<? extends TokenIdentifier>> userTokens = cred.getAllTokens();
565565
for (Token<? extends TokenIdentifier> token : userTokens) {
566566
if (!token.getKind().equals(AMRMTokenIdentifier.KIND_NAME)) {
567-
final Text id = new Text(token.getIdentifier());
568-
taskManagerCred.addToken(id, token);
567+
final Text alias = new Text(token.getService());
568+
taskManagerCred.addToken(alias, token);
569569
}
570570
}
571571

0 commit comments

Comments
 (0)