diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java index 6f6bb85829b..32216610612 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java @@ -455,10 +455,12 @@ public class AMRMClientImpl extends AMRMClient { protected void populateNMTokens(List nmTokens) { for (NMToken token : nmTokens) { String nodeId = token.getNodeId().toString(); - if (getNMTokenCache().containsToken(nodeId)) { - LOG.info("Replacing token for : " + nodeId); - } else { - LOG.info("Received new token for : " + nodeId); + if (LOG.isDebugEnabled()) { + if (getNMTokenCache().containsToken(nodeId)) { + LOG.debug("Replacing token for : " + nodeId); + } else { + LOG.debug("Received new token for : " + nodeId); + } } getNMTokenCache().setToken(nodeId, token.getToken()); } diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/ContainerManagementProtocolProxy.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/ContainerManagementProtocolProxy.java index b2bce22584e..c619e8ad54c 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/ContainerManagementProtocolProxy.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/ContainerManagementProtocolProxy.java @@ -78,8 +78,11 @@ public class ContainerManagementProtocolProxy { YarnConfiguration.NM_CLIENT_MAX_NM_PROXIES + " (" + maxConnectedNMs + ") can not be less than 0."); } - LOG.info(YarnConfiguration.NM_CLIENT_MAX_NM_PROXIES + " : " - + maxConnectedNMs); + + if (LOG.isDebugEnabled()) { + LOG.debug(YarnConfiguration.NM_CLIENT_MAX_NM_PROXIES + " : " + + maxConnectedNMs); + } if (maxConnectedNMs > 0) { cmProxy =