ソースを参照

HADOOP-804. Reduce the verbosity of MapReduce logging. Contributed by Sanjay.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@492343 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 年 前
コミット
55bbda3759

+ 3 - 0
CHANGES.txt

@@ -171,6 +171,9 @@ Trunk (unreleased changes)
 48. HADOOP-628.  Fix a problem with 'fs -cat' command, where some
     characters were replaced with question marks.  (Wendy Chien via cutting)
 
+49. HADOOP-804.  Reduce verbosity of MapReduce logging.
+    (Sanjay Dahiya via cutting)
+
 
 Release 0.9.2 - 2006-12-15
 

+ 1 - 1
src/java/org/apache/hadoop/conf/Configuration.java

@@ -73,7 +73,7 @@ public class Configuration {
   private static final Log LOG =
     LogFactory.getLog("org.apache.hadoop.conf.Configuration");
 
-  private boolean   quietmode = false;
+  private boolean   quietmode = true;
   private ArrayList defaultResources = new ArrayList();
   private ArrayList finalResources = new ArrayList();
 

+ 2 - 2
src/java/org/apache/hadoop/ipc/Client.java

@@ -388,7 +388,7 @@ public class Client {
 
     public void run() {
 
-      LOG.info(getName() + ": starting");
+      LOG.debug(getName() + ": starting");
 
       while (running) {
         try {
@@ -429,7 +429,7 @@ public class Client {
     Thread t = new ConnectionCuller();
     t.setDaemon(true);
     t.setName(valueClass.getName() + " Connection Culler");
-    LOG.info(valueClass.getName() + 
+    LOG.debug(valueClass.getName() + 
              "Connection culler maxidletime= " + maxIdleTime + "ms");
     t.start();
   }

+ 1 - 1
src/java/org/apache/hadoop/mapred/MapTask.java

@@ -323,7 +323,7 @@ class MapTask extends Task {
         Path indexFilename = mapOutputFile.getSpillIndexFile(getTaskId(), 
                                                              numSpills);
         indexOut = localFs.create(indexFilename);
-        LOG.info("opened "+
+        LOG.debug("opened "+
         mapOutputFile.getSpillFile(getTaskId(), numSpills).getName());
           
         //invoke the sort

+ 1 - 1
src/java/org/apache/hadoop/mapred/TaskTracker.java

@@ -1373,7 +1373,7 @@ public class TaskTracker
     public static class Child {
         public static void main(String[] args) throws Throwable {
           //LogFactory.showTime(false);
-          LOG.info("Child starting");
+          LOG.debug("Child starting");
 
           JobConf defaultConf = new JobConf();
           int port = Integer.parseInt(args[0]);