Browse Source

YARN-8988. Reduce the verbose log on RM heartbeat path when distributed node-attributes is enabled. Contributed by Tao Yang.

(cherry picked from commit e1bbf7dcdfc30a61a2b10bef09c59ff17d290488)
Weiwei Yang 6 years ago
parent
commit
b3321d9933

+ 4 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/nodelabels/NodeAttributesManagerImpl.java

@@ -221,8 +221,10 @@ public class NodeAttributesManagerImpl extends NodeAttributesManager {
 
       // Notify RM
       if (rmContext != null && rmContext.getDispatcher() != null) {
-        LOG.info("Updated NodeAttribute event to RM:" + newNodeToAttributesMap
-            .values());
+        if (LOG.isDebugEnabled()) {
+          LOG.debug("Updated NodeAttribute event to RM:"
+              + newNodeToAttributesMap.values());
+        }
         rmContext.getDispatcher().getEventHandler().handle(
             new NodeAttributesUpdateSchedulerEvent(newNodeToAttributesMap));
       }