hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r1195814 - in /hadoop/common/trunk/hadoop-mapreduce-project: CHANGES.txt src/tools/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
Date Tue, 01 Nov 2011 04:32:04 GMT
Author: mahadev
Date: Tue Nov  1 04:32:03 2011
New Revision: 1195814

URL: http://svn.apache.org/viewvc?rev=1195814&view=rev
Log:
MAPREDUCE-3317. Rumen TraceBuilder is emiting null as hostname. (Ravi Gummadi via mahadev)

Modified:
    hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
    hadoop/common/trunk/hadoop-mapreduce-project/src/tools/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java

Modified: hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt?rev=1195814&r1=1195813&r2=1195814&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt Tue Nov  1 04:32:03 2011
@@ -1906,6 +1906,9 @@ Release 0.23.0 - Unreleased
     MAPREDUCE-3316. Rebooted link is not working properly. 
     (Bhallamudi Venkata Siva Kamesh via mahadev)
 
+    MAPREDUCE-3317. Rumen TraceBuilder is emiting null as hostname.
+    (Ravi Gummadi via mahadev)
+
 Release 0.22.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/hadoop-mapreduce-project/src/tools/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/src/tools/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java?rev=1195814&r1=1195813&r2=1195814&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/src/tools/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
(original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/src/tools/org/apache/hadoop/tools/rumen/LoggedTaskAttempt.java
Tue Nov  1 04:32:03 2011
@@ -49,7 +49,6 @@ public class LoggedTaskAttempt implement
   long startTime = -1L;
   long finishTime = -1L;
   String hostName;
-  String rackName;
 
   long hdfsBytesRead = -1L;
   long hdfsBytesWritten = -1L;
@@ -329,9 +328,11 @@ public class LoggedTaskAttempt implement
     return hostName;
   }
 
+
+  // hostName is saved in the format rackName/NodeName
   void setHostName(String hostName, String rackName) {
-    this.hostName = hostName == null || this.rackName == null ? null
-        : hostName.intern() + "/" + rackName.intern();
+    this.hostName = hostName == null || rackName == null ? null
+        : rackName.intern() + "/" + hostName.intern();
   }
 
   public long getHdfsBytesRead() {



Mime
View raw message