From 9d8dbf8ea437b329dea51e2443f9d3566e9faf83 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. (cherry picked from commit 99c7f2b8fa417303e8f42ea3641c302135879280) --- 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 5fb3ae13f9f..4af219bb88f 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -546,6 +546,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 =