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

(cherry picked from commit 26ac0f8f0b)
(cherry picked from commit 752a813283)
This commit is contained in:
Chris Nauroth 2016-04-29 11:33:32 -07:00
parent 31ed34c982
commit 3222dea8ed
1 changed files with 4 additions and 4 deletions

View File

@ -43,14 +43,14 @@ public class TestTeraSort extends HadoopTestCase {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
getFileSystem().delete(new Path(TEST_DIR), true); getFileSystem().delete(TEST_DIR, true);
super.tearDown(); super.tearDown();
} }
// Input/Output paths for sort // Input/Output paths for sort
private static final String TEST_DIR = private static final Path TEST_DIR = new Path(new File(
new File(System.getProperty("test.build.data", "/tmp"), "terasort") System.getProperty("test.build.data", "/tmp"), "terasort")
.getAbsolutePath(); .getAbsoluteFile().toURI().toString());
private static final Path SORT_INPUT_PATH = new Path(TEST_DIR, "sortin"); 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 SORT_OUTPUT_PATH = new Path(TEST_DIR, "sortout");
private static final Path TERA_OUTPUT_PATH = new Path(TEST_DIR, "validate"); private static final Path TERA_OUTPUT_PATH = new Path(TEST_DIR, "validate");