HBASE-19947 ITU should overwrite HTU local FS
This commit is contained in:
parent
d95940776e
commit
f5dbdf0dab
|
@ -132,6 +132,7 @@ public class IntegrationTestingUtility extends HBaseTestingUtility {
|
||||||
|
|
||||||
public void createDistributedHBaseCluster() throws IOException {
|
public void createDistributedHBaseCluster() throws IOException {
|
||||||
Configuration conf = getConfiguration();
|
Configuration conf = getConfiguration();
|
||||||
|
conf.set("fs.defaultFS", conf.get("original.defaultFS"));
|
||||||
Class<? extends ClusterManager> clusterManagerClass = conf.getClass(HBASE_CLUSTER_MANAGER_CLASS,
|
Class<? extends ClusterManager> clusterManagerClass = conf.getClass(HBASE_CLUSTER_MANAGER_CLASS,
|
||||||
DEFAULT_HBASE_CLUSTER_MANAGER_CLASS, ClusterManager.class);
|
DEFAULT_HBASE_CLUSTER_MANAGER_CLASS, ClusterManager.class);
|
||||||
ClusterManager clusterManager = ReflectionUtils.newInstance(
|
ClusterManager clusterManager = ReflectionUtils.newInstance(
|
||||||
|
|
|
@ -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
|
// Every cluster is a local cluster until we start DFS
|
||||||
// Note that conf could be null, but this.conf will not be
|
// Note that conf could be null, but this.conf will not be
|
||||||
String dataTestDir = getDataTestDir().toString();
|
String dataTestDir = getDataTestDir().toString();
|
||||||
|
|
Loading…
Reference in New Issue