From daff39a601ffe6890da9361881926abb4f51da10 Mon Sep 17 00:00:00 2001 From: bibinchundatt Date: Wed, 29 Jul 2020 23:26:08 +0530 Subject: [PATCH] YARN-10369. Make NMTokenSecretManagerInRM sending NMToken for nodeId DEBUG. Contributed by Jim Brennan. (cherry picked from commit 5d8600e80ad7864b332b60d5a01585fdf00848ee) --- .../resourcemanager/security/NMTokenSecretManagerInRM.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/security/NMTokenSecretManagerInRM.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/security/NMTokenSecretManagerInRM.java index 956391edeea..dab6a5a9232 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/security/NMTokenSecretManagerInRM.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/security/NMTokenSecretManagerInRM.java @@ -197,8 +197,9 @@ public class NMTokenSecretManagerInRM extends BaseNMTokenSecretManager { NMToken nmToken = null; if (nodeSet != null) { if (!nodeSet.contains(container.getNodeId())) { - LOG.info("Sending NMToken for nodeId : " + container.getNodeId() - + " for container : " + container.getId()); + LOG.debug( + String.format("Sending NMToken for nodeId : %s for container : %s", + container.getNodeId().toString(), container.getId().toString())); Token token = createNMToken(container.getId().getApplicationAttemptId(), container.getNodeId(), applicationSubmitter);