From e1bbf7dcdfc30a61a2b10bef09c59ff17d290488 Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Thu, 8 Nov 2018 17:47:18 +0800 Subject: [PATCH] YARN-8988. Reduce the verbose log on RM heartbeat path when distributed node-attributes is enabled. Contributed by Tao Yang. --- .../nodelabels/NodeAttributesManagerImpl.java | 6 ++++-- 1 file changed, 4 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/nodelabels/NodeAttributesManagerImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/nodelabels/NodeAttributesManagerImpl.java index e5247888d75..83c59832eb9 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/nodelabels/NodeAttributesManagerImpl.java +++ b/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)); }