You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by en...@apache.org on 2013/02/06 23:05:18 UTC

svn commit: r1443234 - in /hbase/trunk/hbase-server/src: main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java

Author: enis
Date: Wed Feb  6 22:05:17 2013
New Revision: 1443234

URL: http://svn.apache.org/viewvc?rev=1443234&view=rev
Log:
HBASE-7768. Zkcluster in local mode not seeing configurations in hbase-{site|default}.xml

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java?rev=1443234&r1=1443233&r2=1443234&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java Wed Feb  6 22:05:17 2013
@@ -121,8 +121,7 @@ public class HMasterCommandLine extends 
       // 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) {

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java?rev=1443234&r1=1443233&r2=1443234&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java (original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java Wed Feb  6 22:05:17 2013
@@ -1518,7 +1518,7 @@ public class PerformanceEvaluation exten
     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