From 7b5aa72d0ada48460d79cc6e34d8e401280b5698 Mon Sep 17 00:00:00 2001 From: Jason Darrell Lowe Date: Fri, 26 Jul 2013 22:01:25 +0000 Subject: [PATCH] MAPREDUCE-5419. TestSlive is getting FileNotFound Exception. Contributed by Robert Parker git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1507486 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 6 ++++++ .../src/test/java/org/apache/hadoop/fs/slive/TestSlive.java | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index dc4004cd57..fd8ffa8b2e 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -624,6 +624,9 @@ Release 2.1.0-beta - 2013-07-02 MAPREDUCE-5421. Fixed TestNonExistentJob failure after YARN-873. (Junping Du via vinodkv) + MAPREDUCE-5419. TestSlive is getting FileNotFound Exception (Robert Parker + via jlowe) + BREAKDOWN OF HADOOP-8562 SUBTASKS MAPREDUCE-4739. Some MapReduce tests fail to find winutils. @@ -1255,6 +1258,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 diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/slive/TestSlive.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/slive/TestSlive.java index 4ae9c4259c..3db7695fc3 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/slive/TestSlive.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/slive/TestSlive.java @@ -63,7 +63,9 @@ private static Configuration getBaseConfig() { /** 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 */