hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jl...@apache.org
Subject hadoop git commit: YARN-7678. Ability to enable logging of container memory stats. Contributed by Jim Brennan
Date Thu, 04 Jan 2018 16:18:13 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 45a47198b -> d79566186


YARN-7678. Ability to enable logging of container memory stats. Contributed by Jim Brennan


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d7956618
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d7956618
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d7956618

Branch: refs/heads/trunk
Commit: d795661868e330ac55d6ac7b0ee62fb658e03ff7
Parents: 45a4719
Author: Jason Lowe <jlowe@apache.org>
Authored: Thu Jan 4 10:15:52 2018 -0600
Committer: Jason Lowe <jlowe@apache.org>
Committed: Thu Jan 4 10:15:52 2018 -0600

----------------------------------------------------------------------
 .../containermanager/monitor/ContainersMonitorImpl.java        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d7956618/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
----------------------------------------------------------------------
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/monitor/ContainersMonitorImpl.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
index bc28646..23c89c0 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/monitor/ContainersMonitorImpl.java
@@ -59,6 +59,8 @@ public class ContainersMonitorImpl extends AbstractService implements
 
   private final static Logger LOG =
        LoggerFactory.getLogger(ContainersMonitorImpl.class);
+  private final static Logger AUDITLOG =
+       LoggerFactory.getLogger(ContainersMonitorImpl.class.getName()+".audit");
 
   private long monitoringInterval;
   private MonitoringThread monitoringThread;
@@ -595,8 +597,8 @@ public class ContainersMonitorImpl extends AbstractService implements
               * maxVCoresAllottedForContainers /nodeCpuPercentageForYARN);
       long vmemLimit = ptInfo.getVmemLimit();
       long pmemLimit = ptInfo.getPmemLimit();
-      if (LOG.isDebugEnabled()) {
-        LOG.debug(String.format(
+      if (AUDITLOG.isDebugEnabled()) {
+        AUDITLOG.debug(String.format(
                 "Memory usage of ProcessTree %s for container-id %s: ",
                 pId, containerId.toString()) +
                 formatUsageString(


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message