HBASE-19820 Restore public constructor of MiniHBaseCluster (API compat).

This commit is contained in:
Apekshit Sharma 2018-01-17 18:45:58 -08:00
parent 251826e138
commit 25621c6ea2
1 changed files with 14 additions and 1 deletions

View File

@ -78,7 +78,20 @@ public class MiniHBaseCluster extends HBaseCluster {
*/ */
public MiniHBaseCluster(Configuration conf, int numMasters, int numRegionServers) public MiniHBaseCluster(Configuration conf, int numMasters, int numRegionServers)
throws IOException, InterruptedException { throws IOException, InterruptedException {
this(conf, numMasters, numRegionServers, null, null, null); this(conf, numMasters, numRegionServers, null, null);
}
/**
* Start a MiniHBaseCluster.
* @param conf Configuration to be used for cluster
* @param numMasters initial number of masters to start.
* @param numRegionServers initial number of region servers to start.
*/
public MiniHBaseCluster(Configuration conf, int numMasters, int numRegionServers,
Class<? extends HMaster> masterClass,
Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> regionserverClass)
throws IOException, InterruptedException {
this(conf, numMasters, numRegionServers, null, masterClass, regionserverClass);
} }
/** /**