Explorar o código

Fix HADOOP-117. Correctly remove mapred temp files.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@391425 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting %!s(int64=19) %!d(string=hai) anos
pai
achega
ddfb5e4949
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/mapred/JobConf.java

+ 4 - 0
CHANGES.txt

@@ -8,6 +8,10 @@ Unreleased changes (in trunk):
     Closeable interface.  This permits subclasses which override this
     method to throw that exception. (cutting)
 
+ 3. Fix HADOOP-117.  Pathnames were mistakenly transposed in
+    JobConf.getLocalFile() causing many mapred temporary files to not
+    be removed.  (Raghavendra Prabhu via cutting)
+
 
 Release 0.1.0 - 2006-04-01
 

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

@@ -124,7 +124,7 @@ public class JobConf extends Configuration {
   /** Constructs a local file name.  Files are distributed among configured
    * local directories.*/
   public File getLocalFile(String subdir, String name) throws IOException {
-    return getFile("mapred.local.dir", name + File.separator + subdir);
+    return getFile("mapred.local.dir", subdir + File.separator + name);
   }
 
   public void setInputDir(File dir) { set("mapred.input.dir", dir); }