From 4a1f94301ed7c052ff07ed4248406bf5f8b72487 Mon Sep 17 00:00:00 2001 From: Mike Drob Date: Tue, 23 Jan 2018 17:30:01 -0600 Subject: [PATCH] HBASE-19841 HTU must read hbase-site.xml (cherry picked from commit 1305bcc29fab59a4a86b5f2965a5222f56f05bcc) --- .../src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index 75abd5e219..54acd2c9dd 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -2308,7 +2308,7 @@ public class HBaseTestingUtility extends HBaseZKTestingUtility { throws IOException { // The WAL subsystem will use the default rootDir rather than the passed in rootDir // unless I pass along via the conf. - Configuration confForWAL = new Configuration(conf); + Configuration confForWAL = HBaseConfiguration.create(conf); confForWAL.set(HConstants.HBASE_DIR, rootDir.toString()); return (new WALFactory(confForWAL, Collections. singletonList(new MetricsWAL()), -- 2.15.1