From 6a49e58cb81e2d0971166a11a79adc2e1a5aae2a Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Thu, 12 Feb 2015 17:56:59 -0800 Subject: [PATCH] YARN-3191. Log object should be initialized with its own class. Contributed by Rohith. --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../containermanager/application/ApplicationImpl.java | 2 +- .../nodemanager/containermanager/container/ContainerImpl.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index fdf13beab4c..41e5411b061 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -582,6 +582,9 @@ Release 2.7.0 - UNRELEASED YARN-3104. Fixed RM to not generate new AMRM tokens on every heartbeat between rolling and activation. (Jason Lowe via jianhe) + YARN-3191. Log object should be initialized with its own class. (Rohith via + aajisaka) + Release 2.6.0 - 2014-11-18 INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/application/ApplicationImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/application/ApplicationImpl.java index fbcd4a19909..a73b11303e0 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/application/ApplicationImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/application/ApplicationImpl.java @@ -73,7 +73,7 @@ public class ApplicationImpl implements Application { private final WriteLock writeLock; private final Context context; - private static final Log LOG = LogFactory.getLog(Application.class); + private static final Log LOG = LogFactory.getLog(ApplicationImpl.class); private LogAggregationContext logAggregationContext; diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/ContainerImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/ContainerImpl.java index 57b0bdac2b7..cf3d8e73860 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/ContainerImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/ContainerImpl.java @@ -99,7 +99,7 @@ public class ContainerImpl implements Container { /** The NM-wide configuration - not specific to this container */ private final Configuration daemonConf; - private static final Log LOG = LogFactory.getLog(Container.class); + private static final Log LOG = LogFactory.getLog(ContainerImpl.class); private final Map> pendingResources = new HashMap>(); private final Map> localizedResources =