hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yhema...@apache.org
Subject svn commit: r775074 - in /hadoop/core/branches/branch-0.20: CHANGES.txt src/test/org/apache/hadoop/mapred/MiniMRCluster.java
Date Fri, 15 May 2009 09:45:57 GMT
Author: yhemanth
Date: Fri May 15 09:45:57 2009
New Revision: 775074

URL: http://svn.apache.org/viewvc?rev=775074&view=rev
Log:
HADOOP-5828. Use absolute path for mapred.local.dir of JobTracker in MiniMRCluster. Contributed
by Hemanth Yamijala.

Modified:
    hadoop/core/branches/branch-0.20/CHANGES.txt
    hadoop/core/branches/branch-0.20/src/test/org/apache/hadoop/mapred/MiniMRCluster.java

Modified: hadoop/core/branches/branch-0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/CHANGES.txt?rev=775074&r1=775073&r2=775074&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.20/CHANGES.txt Fri May 15 09:45:57 2009
@@ -64,6 +64,9 @@
     HADOOP-5641. Fix a NullPointerException in capacity scheduler's memory
     based scheduling code when jobs get retired. (yhemanth)
 
+    HADOOP-5828. Use absolute path for mapred.local.dir of JobTracker in
+    MiniMRCluster. (yhemanth)
+
 Release 0.20.0 - 2009-04-15
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/branches/branch-0.20/src/test/org/apache/hadoop/mapred/MiniMRCluster.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/src/test/org/apache/hadoop/mapred/MiniMRCluster.java?rev=775074&r1=775073&r2=775074&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/src/test/org/apache/hadoop/mapred/MiniMRCluster.java
(original)
+++ hadoop/core/branches/branch-0.20/src/test/org/apache/hadoop/mapred/MiniMRCluster.java
Fri May 15 09:45:57 2009
@@ -95,7 +95,8 @@
     public void run() {
       try {
         jc = (jc == null) ? createJobConf() : createJobConf(jc);
-        jc.set("mapred.local.dir","build/test/mapred/local");
+        File f = new File("build/test/mapred/local").getAbsoluteFile();
+        jc.set("mapred.local.dir",f.getAbsolutePath());
         jc.setClass("topology.node.switch.mapping.impl", 
             StaticMapping.class, DNSToSwitchMapping.class);
         tracker = JobTracker.startTracker(jc);



Mime
View raw message