You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cn...@apache.org on 2016/04/29 20:38:55 UTC

[2/3] hadoop git commit: MAPREDUCE-6672. TestTeraSort fails on Windows. Contributed by Tibor Kiss.

MAPREDUCE-6672. TestTeraSort fails on Windows. Contributed by Tibor Kiss.

(cherry picked from commit 26ac0f8f0b28758a6404cd7b4b81d79b61d809d9)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/752a8132
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/752a8132
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/752a8132

Branch: refs/heads/branch-2
Commit: 752a8132832fd59027df5cb1bbedb9b3b7c54681
Parents: fe3c288
Author: Chris Nauroth <cn...@apache.org>
Authored: Fri Apr 29 11:33:32 2016 -0700
Committer: Chris Nauroth <cn...@apache.org>
Committed: Fri Apr 29 11:33:41 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/examples/terasort/TestTeraSort.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/752a8132/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/test/java/org/apache/hadoop/examples/terasort/TestTeraSort.java
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/test/java/org/apache/hadoop/examples/terasort/TestTeraSort.java b/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/test/java/org/apache/hadoop/examples/terasort/TestTeraSort.java
index 391e482..b835a3b 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/test/java/org/apache/hadoop/examples/terasort/TestTeraSort.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-examples/src/test/java/org/apache/hadoop/examples/terasort/TestTeraSort.java
@@ -43,14 +43,14 @@ public class TestTeraSort extends HadoopTestCase {
 
   @After
   public void tearDown() throws Exception {
-    getFileSystem().delete(new Path(TEST_DIR), true);
+    getFileSystem().delete(TEST_DIR, true);
     super.tearDown();
   }
   
   // Input/Output paths for sort
-  private static final String TEST_DIR = 
-    new File(System.getProperty("test.build.data", "/tmp"), "terasort")
-    .getAbsolutePath();
+  private static final Path TEST_DIR = new Path(new File(
+    System.getProperty("test.build.data", "/tmp"), "terasort")
+    .getAbsoluteFile().toURI().toString());
   private static final Path SORT_INPUT_PATH = new Path(TEST_DIR, "sortin");
   private static final Path SORT_OUTPUT_PATH = new Path(TEST_DIR, "sortout");
   private static final Path TERA_OUTPUT_PATH = new Path(TEST_DIR, "validate");


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org