HBASE-19947 ITU should overwrite HTU local FS
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/f5dbdf0d Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f5dbdf0d Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f5dbdf0d Branch: refs/heads/HBASE-19064 Commit: f5dbdf0dab731a986d9aea2ad3dfdb400f1ba46c Parents: d959407 Author: Mike Drob <md...@apache.org> Authored: Tue Feb 6 14:08:23 2018 -0600 Committer: Mike Drob <md...@apache.org> Committed: Wed Feb 7 16:53:54 2018 -0600 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hbase/IntegrationTestingUtility.java | 1 + .../test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java | 3 +++ 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/f5dbdf0d/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java ---------------------------------------------------------------------- diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java index afb21e4..a1a81ed 100644 --- a/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java +++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java @@ -132,6 +132,7 @@ public class IntegrationTestingUtility extends HBaseTestingUtility { public void createDistributedHBaseCluster() throws IOException { Configuration conf = getConfiguration(); + conf.set("fs.defaultFS", conf.get("original.defaultFS")); Class<? extends ClusterManager> clusterManagerClass = conf.getClass(HBASE_CLUSTER_MANAGER_CLASS, DEFAULT_HBASE_CLUSTER_MANAGER_CLASS, ClusterManager.class); ClusterManager clusterManager = ReflectionUtils.newInstance( http://git-wip-us.apache.org/repos/asf/hbase/blob/f5dbdf0d/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java ---------------------------------------------------------------------- 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 4f55199..2bdfd2d 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 @@ -346,6 +346,9 @@ public class HBaseTestingUtility extends HBaseZKTestingUtility { } } + // Save this for when setting default file:// breaks things + this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS")); + // Every cluster is a local cluster until we start DFS // Note that conf could be null, but this.conf will not be String dataTestDir = getDataTestDir().toString();