diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java index 1c7813bff63..f4d38a0376e 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestBoundedRegionGroupingProvider.java @@ -38,6 +38,7 @@ import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.testclassification.LargeTests; import org.apache.hadoop.hbase.testclassification.RegionServerTests; import org.apache.hadoop.hbase.util.Bytes; +import org.apache.hadoop.hbase.util.FSUtils; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; @@ -159,6 +160,9 @@ public class TestBoundedRegionGroupingProvider { WALFactory wals = null; try { conf.setInt(NUM_REGION_GROUPS, temp*4); + // Set HDFS root directory for storing WAL + FSUtils.setRootDir(conf, TEST_UTIL.getDataTestDirOnTestFS()); + wals = new WALFactory(conf, null, currentTest.getMethodName()); final Set seen = new HashSet(temp*4); final Random random = new Random();