hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1203016 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
Date Thu, 17 Nov 2011 02:17:04 GMT
Author: nspiegelberg
Date: Thu Nov 17 02:17:03 2011
New Revision: 1203016

URL: http://svn.apache.org/viewvc?rev=1203016&view=rev
Log:
Fix master startup when running on a single machine

Summary:
As part of master failover unit test changes I removed public access from
HMaster.LocalHMaster, which broke local HBase startup (a pseudo-distributed
configuration).

This is a quick fix. A more thorough fix would ideally add a unit test.

Test Plan:
./start-hbase.sh
Go to localhost:60010 and verify that the master is up.

Reviewers: kannan

Reviewed By: kannan

CC: hbase-eng@lists, kannan

Differential Revision: 362257

Revert Plan: OK

Modified:
    hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/HMaster.java

Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/HMaster.java?rev=1203016&r1=1203015&r2=1203016&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/HMaster.java (original)
+++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/HMaster.java Thu Nov
17 02:17:03 2011
@@ -1777,7 +1777,7 @@ public class HMaster extends Thread impl
   /*
    * Version of master that will shutdown the passed zk cluster on its way out.
    */
-  static class LocalHMaster extends HMaster {
+  public static class LocalHMaster extends HMaster {
     private MiniZooKeeperCluster zkcluster = null;
 
     public LocalHMaster(Configuration conf) throws IOException {



Mime
View raw message