HBASE-7768. Zkcluster in local mode not seeing configurations in hbase-{site|default}.xml
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1443234 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1392824a85
commit
f17165ae08
|
@ -121,8 +121,7 @@ public class HMasterCommandLine extends ServerCommandLine {
|
|||
// If 'local', defer to LocalHBaseCluster instance. Starts master
|
||||
// and regionserver both in the one JVM.
|
||||
if (LocalHBaseCluster.isLocal(conf)) {
|
||||
final MiniZooKeeperCluster zooKeeperCluster =
|
||||
new MiniZooKeeperCluster();
|
||||
final MiniZooKeeperCluster zooKeeperCluster = new MiniZooKeeperCluster(conf);
|
||||
File zkDataPath = new File(conf.get(HConstants.ZOOKEEPER_DATA_DIR));
|
||||
int zkClientPort = conf.getInt(HConstants.ZOOKEEPER_CLIENT_PORT, 0);
|
||||
if (zkClientPort == 0) {
|
||||
|
|
|
@ -1518,7 +1518,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
|
|||
Configuration conf = getConf();
|
||||
if (this.miniCluster) {
|
||||
dfsCluster = new MiniDFSCluster(conf, 2, true, (String[])null);
|
||||
zooKeeperCluster = new MiniZooKeeperCluster();
|
||||
zooKeeperCluster = new MiniZooKeeperCluster(conf);
|
||||
int zooKeeperPort = zooKeeperCluster.startup(new File(System.getProperty("java.io.tmpdir")));
|
||||
|
||||
// mangle the conf so that the fs parameter points to the minidfs we
|
||||
|
|
Loading…
Reference in New Issue