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:
Enis Soztutar 2013-02-06 22:05:17 +00:00
parent 1392824a85
commit f17165ae08
2 changed files with 2 additions and 3 deletions

View File

@ -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) {

View File

@ -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