From 46b7054fa7eae9129c21c9f3dc70acff46bfdc41 Mon Sep 17 00:00:00 2001 From: Sunil G Date: Mon, 7 Aug 2017 13:15:46 +0530 Subject: [PATCH] YARN-6951. Fix debug log when Resource Handler chain is enabled. Contributed by Yang Wang. --- .../hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java index 2aaa8359e7b..b3e13b4942e 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java @@ -307,7 +307,7 @@ public class LinuxContainerExecutor extends ContainerExecutor { .getConfiguredResourceHandlerChain(conf); if (LOG.isDebugEnabled()) { LOG.debug("Resource handler chain enabled = " + (resourceHandlerChain - == null)); + != null)); } if (resourceHandlerChain != null) { LOG.debug("Bootstrapping resource handler chain");