hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r505557 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/MapOutputLocation.java src/java/org/apache/hadoop/mapred/MapTask.java src/java/org/apache/hadoop/mapred/ReduceTask.java
Date Fri, 09 Feb 2007 23:34:37 GMT
Author: cutting
Date: Fri Feb  9 15:34:36 2007
New Revision: 505557

URL: http://svn.apache.org/viewvc?view=rev&rev=505557
Log:
HADOOP-1007.  Make names of metrics used in Hadoop unique.  Contributed by Nigel.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapOutputLocation.java
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapTask.java
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/ReduceTask.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=505557&r1=505556&r2=505557
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Fri Feb  9 15:34:36 2007
@@ -32,6 +32,9 @@
 
  9. HADOOP-761.  Change unit tests to not use /tmp.  (Nigel Daley via cutting)
 
+10. HADOOP-1007. Make names of metrics used in Hadoop unique.
+    (Nigel Daley via cutting)
+
 
 Release 0.11.1 - 2007-02-09
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapOutputLocation.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapOutputLocation.java?view=diff&rev=505557&r1=505556&r2=505557
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapOutputLocation.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapOutputLocation.java Fri Feb 
9 15:34:36 2007
@@ -228,7 +228,7 @@
           int len = input.read(buffer);
           while (len > 0) {
             totalBytes += len;
-            shuffleMetrics.incrMetric("input_bytes", len);
+            shuffleMetrics.incrMetric("shuffle_input_bytes", len);
             shuffleMetrics.update();
             output.write(buffer, 0 ,len);
             if (currentThread.isInterrupted()) {

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapTask.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapTask.java?view=diff&rev=505557&r1=505556&r2=505557
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapTask.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapTask.java Fri Feb  9 15:34:36
2007
@@ -71,14 +71,14 @@
     }
     
     synchronized void mapInput(int numBytes) {
-        mapInputMetrics.incrMetric("input_records", 1);
-        mapInputMetrics.incrMetric("input_bytes", numBytes);
+        mapInputMetrics.incrMetric("map_input_records", 1);
+        mapInputMetrics.incrMetric("map_input_bytes", numBytes);
         mapInputMetrics.update();
     }
     
     synchronized void mapOutput(int numBytes) {
-        mapOutputMetrics.incrMetric("output_records", 1);
-        mapOutputMetrics.incrMetric("output_bytes", numBytes);
+        mapOutputMetrics.incrMetric("map_output_records", 1);
+        mapOutputMetrics.incrMetric("map_output_bytes", numBytes);
         mapOutputMetrics.update();
     }
     

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/ReduceTask.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/ReduceTask.java?view=diff&rev=505557&r1=505556&r2=505557
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/ReduceTask.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/ReduceTask.java Fri Feb  9 15:34:36
2007
@@ -53,12 +53,12 @@
     }
     
     synchronized void reduceInput() {
-        inputMetrics.incrMetric("input_records", 1);
+        inputMetrics.incrMetric("reduce_input_records", 1);
         inputMetrics.update();
     }
     
     synchronized void reduceOutput() {
-        outputMetrics.incrMetric("output_records", 1);
+        outputMetrics.incrMetric("reduce_output_records", 1);
         outputMetrics.update();
     }
   }



Mime
View raw message