Author: suresh
Date: Thu Jan 3 21:50:47 2013
New Revision: 1428620
URL: http://svn.apache.org/viewvc?rev=1428620&view=rev
Log:
MAPREDUCE-4909. TestKeyValueTextInputFormat fails with Open JDK 7 on Windows.
Contributed by Arpit Agarwal.
Modified:
hadoop/common/branches/branch-1/CHANGES.txt
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapred/TestKeyValueTextInputFormat.java
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapreduce/lib/input/TestKeyValueTextInputFormat.java
Modified: hadoop/common/branches/branch-1/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/CHANGES.txt?rev=1428620&r1=1428619&r2=1428620&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1/CHANGES.txt Thu Jan 3 21:50:47 2013
@@ -382,6 +382,9 @@ Release 1.2.0 - unreleased
MAPREDUCE-2217. The expire launching task should cover the UNASSIGNED
task.
(schen and kkambatl via tucu)
+ MAPREDUCE-4909. TestKeyValueTextInputFormat fails with Open JDK 7 on
+ Windows. (Arpit Agarwal via suresh)
+
Release 1.1.2 - Unreleased
INCOMPATIBLE CHANGES
Modified:
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapred/TestKeyValueTextInputFormat.java
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapred/TestKeyValueTextInputFormat.java?rev=1428620&r1=1428619&r2=1428620&view=diff
==============================================================================
---
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapred/TestKeyValueTextInputFormat.java
(original)
+++
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapred/TestKeyValueTextInputFormat.java
Thu Jan 3 21:50:47 2013
@@ -47,10 +47,14 @@ public class TestKeyValueTextInputFormat
private static Path workDir =
new Path(new Path(System.getProperty("test.build.data", "."), "data"),
"TestKeyValueTextInputFormat");
+
+ private static Path workDirFormat =
+ new Path(new Path(System.getProperty("test.build.data", "."), "data"),
+ "TestKeyValueTextInputFormat-testFormat");
public void testFormat() throws Exception {
JobConf job = new JobConf();
- Path file = new Path(workDir, "test.txt");
+ Path file = new Path(workDirFormat, "test.txt");
// A reporter that does nothing
Reporter reporter = Reporter.NULL;
@@ -59,8 +63,8 @@ public class TestKeyValueTextInputFormat
LOG.info("seed = "+seed);
Random random = new Random(seed);
- localFs.delete(workDir, true);
- FileInputFormat.setInputPaths(job, workDir);
+ localFs.delete(workDirFormat, true);
+ FileInputFormat.setInputPaths(job, workDirFormat);
// for a variety of lengths
for (int length = 0; length < MAX_LENGTH;
Modified:
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapreduce/lib/input/TestKeyValueTextInputFormat.java
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapreduce/lib/input/TestKeyValueTextInputFormat.java?rev=1428620&r1=1428619&r2=1428620&view=diff
==============================================================================
---
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapreduce/lib/input/TestKeyValueTextInputFormat.java
(original)
+++
hadoop/common/branches/branch-1/src/test/org/apache/hadoop/mapreduce/lib/input/TestKeyValueTextInputFormat.java
Thu Jan 3 21:50:47 2013
@@ -55,17 +55,21 @@ public class TestKeyValueTextInputFormat
private static Path workDir =
new Path(new Path(System.getProperty("test.build.data", "."), "data"),
"TestKeyValueTextInputFormat");
+
+ private static Path workDirFormat =
+ new Path(new Path(System.getProperty("test.build.data", "."), "data"),
+ "TestKeyValueTextInputFormat-testFormat");
public void testFormat() throws Exception {
Job job = new Job(defaultConf);
- Path file = new Path(workDir, "test.txt");
+ Path file = new Path(workDirFormat, "test.txt");
int seed = new Random().nextInt();
LOG.info("seed = "+seed);
Random random = new Random(seed);
- localFs.delete(workDir, true);
- FileInputFormat.setInputPaths(job, workDir);
+ localFs.delete(workDirFormat, true);
+ FileInputFormat.setInputPaths(job, workDirFormat);
// for a variety of lengths
for (int length = 0; length < MAX_LENGTH;