You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by hi...@apache.org on 2014/05/21 00:31:31 UTC
git commit: TEZ-1140. TestSecureShuffle leaves behind test data dirs.
(hitesh)
Repository: incubator-tez
Updated Branches:
refs/heads/master aa3b77209 -> 6e07fc7e7
TEZ-1140. TestSecureShuffle leaves behind test data dirs. (hitesh)
Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/6e07fc7e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/6e07fc7e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/6e07fc7e
Branch: refs/heads/master
Commit: 6e07fc7e7a4d8d4b8f9ddb7cf1e29ea3b47020be
Parents: aa3b772
Author: Hitesh Shah <hi...@apache.org>
Authored: Tue May 20 15:30:58 2014 -0700
Committer: Hitesh Shah <hi...@apache.org>
Committed: Tue May 20 15:30:58 2014 -0700
----------------------------------------------------------------------
.../src/test/java/org/apache/tez/test/TestSecureShuffle.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/6e07fc7e/tez-tests/src/test/java/org/apache/tez/test/TestSecureShuffle.java
----------------------------------------------------------------------
diff --git a/tez-tests/src/test/java/org/apache/tez/test/TestSecureShuffle.java b/tez-tests/src/test/java/org/apache/tez/test/TestSecureShuffle.java
index 7921c83..8cebb71 100644
--- a/tez-tests/src/test/java/org/apache/tez/test/TestSecureShuffle.java
+++ b/tez-tests/src/test/java/org/apache/tez/test/TestSecureShuffle.java
@@ -50,7 +50,9 @@ public class TestSecureShuffle {
private static FileSystem fs;
private static Path inputLoc = new Path("/tmp/sample.txt");
private static Path outputLoc = new Path("/tmp/outPath");
- private static File keysStoresDir = new File("target/keystores");
+ private static String TEST_ROOT_DIR = "target" + Path.SEPARATOR
+ + TestSecureShuffle.class.getName() + "-tmpDir";
+ private static File keysStoresDir = new File(TEST_ROOT_DIR, "keystores");
@BeforeClass
public static void setup() throws Exception {
@@ -58,6 +60,7 @@ public class TestSecureShuffle {
System.setProperty("javax.net.debug", "all");
conf = new Configuration();
setupKeyStores();
+ conf.set(MiniDFSCluster.HDFS_MINIDFS_BASEDIR, TEST_ROOT_DIR);
miniDFSCluster =
new MiniDFSCluster.Builder(conf).numDataNodes(3).format(true).build();