From 26cbe44337a615f8a4fa296fb9ac82cebe301f3a Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Mon, 31 Oct 2016 21:57:48 -0700 Subject: [PATCH] HBASE-16983 TestMultiTableSnapshotInputFormat failing with Unable to create region directory: /tmp/... --- .../hbase/mapreduce/TestMultiTableSnapshotInputFormat.java | 2 +- .../org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java index 19e7a18b83c..c7621808713 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormat.java @@ -64,7 +64,7 @@ public class TestMultiTableSnapshotInputFormat extends MultiTableInputFormatTest @Before public void setUp() throws Exception { - this.restoreDir = new Path("/tmp"); + this.restoreDir = TEST_UTIL.getDataTestDir(); } diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java index 349ec1cfbdc..988316f3bf7 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStoreFileInfo.java @@ -67,7 +67,7 @@ public class TestStoreFileInfo { @Test public void testEqualsWithLink() throws IOException { Path origin = new Path("/origin"); - Path tmp = new Path("/tmp"); + Path tmp = TEST_UTIL.getDataTestDir(); Path mob = new Path("/mob"); Path archive = new Path("/archive"); HFileLink link1 = new HFileLink(new Path(origin, "f1"), new Path(tmp, "f1"),