Ver código fonte

svn merge -c 1507486 FIXES: MAPREDUCE-5419. TestSlive is getting FileNotFound Exception. Contributed by Robert Parker

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1507489 13f79535-47bb-0310-9956-ffa450edef68
Jason Darrell Lowe 11 anos atrás
pai
commit
7740dd6f78

+ 3 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -27,6 +27,9 @@ Release 0.23.10 - UNRELEASED
     MAPREDUCE-5251. Reducer should not implicate map attempt if it has
     insufficient space to fetch map output (Ashwin Shankar via jlowe)
 
+    MAPREDUCE-5419. TestSlive is getting FileNotFound Exception (Robert Parker
+    via jlowe)
+
 Release 0.23.9 - 2013-07-08
 
   INCOMPATIBLE CHANGES

+ 3 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/slive/TestSlive.java

@@ -63,7 +63,9 @@ public class TestSlive {
   /** gets the test write location according to the coding guidelines */
   private static File getWriteLoc() {
     String writeLoc = System.getProperty(TEST_DATA_PROP, "build/test/data/");
-    return new File(writeLoc, "slive");
+    File writeDir = new File(writeLoc, "slive");
+    writeDir.mkdirs();
+    return writeDir;
   }
 
   /** gets where the MR job places its data + output + results */