@InterfaceAudience.Public public final class StartMiniClusterOption extends Object
StartMiniClusterOption.Builder
. Example usage:
StartMiniClusterOption option = StartMiniClusterOption.builder(). .numMasters(3).rsClass(MyRegionServer.class).createWALDir(true).build();Default values can be found in
StartMiniClusterOption.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
StartMiniClusterOption.Builder
Builder pattern for creating an
StartMiniClusterOption . |
Modifier and Type | Field and Description |
---|---|
private boolean |
createRootDir
Whether to create a new root or data directory path.
|
private boolean |
createWALDir
Whether to create a new WAL directory.
|
private String[] |
dataNodeHosts
The hostnames of DataNodes to run on.
|
private Class<? extends org.apache.hadoop.hbase.master.HMaster> |
masterClass
The class to use as HMaster, or null for default.
|
private int |
numAlwaysStandByMasters
Number of masters that always remain standby.
|
private int |
numDataNodes
Number of datanodes.
|
private int |
numMasters
Number of masters to start up.
|
private int |
numRegionServers
Number of region servers to start up.
|
private int |
numZkServers
Number of Zookeeper servers.
|
private Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> |
rsClass
The class to use as HRegionServer, or null for default.
|
private List<Integer> |
rsPorts
Ports that RegionServer should use.
|
Modifier | Constructor and Description |
---|---|
private |
StartMiniClusterOption(int numMasters,
int numAlwaysStandByMasters,
Class<? extends org.apache.hadoop.hbase.master.HMaster> masterClass,
int numRegionServers,
List<Integer> rsPorts,
Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> rsClass,
int numDataNodes,
String[] dataNodeHosts,
int numZkServers,
boolean createRootDir,
boolean createWALDir)
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
static StartMiniClusterOption.Builder |
builder()
Returns a new builder.
|
String[] |
getDataNodeHosts() |
Class<? extends org.apache.hadoop.hbase.master.HMaster> |
getMasterClass() |
int |
getNumAlwaysStandByMasters() |
int |
getNumDataNodes() |
int |
getNumMasters() |
int |
getNumRegionServers() |
int |
getNumZkServers() |
Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> |
getRsClass() |
List<Integer> |
getRsPorts() |
boolean |
isCreateRootDir() |
boolean |
isCreateWALDir() |
String |
toString() |
private final int numMasters
MiniHBaseCluster.getMaster()
.private final int numAlwaysStandByMasters
private final Class<? extends org.apache.hadoop.hbase.master.HMaster> masterClass
private final int numRegionServers
private final List<Integer> rsPorts
private Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> rsClass
private final int numDataNodes
dataNodeHosts
size.private final String[] dataNodeHosts
private final int numZkServers
private final boolean createRootDir
private final boolean createWALDir
private StartMiniClusterOption(int numMasters, int numAlwaysStandByMasters, Class<? extends org.apache.hadoop.hbase.master.HMaster> masterClass, int numRegionServers, List<Integer> rsPorts, Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> rsClass, int numDataNodes, String[] dataNodeHosts, int numZkServers, boolean createRootDir, boolean createWALDir)
StartMiniClusterOption.Builder.build()
.public int getNumMasters()
public int getNumAlwaysStandByMasters()
public Class<? extends org.apache.hadoop.hbase.master.HMaster> getMasterClass()
public int getNumRegionServers()
public List<Integer> getRsPorts()
public Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> getRsClass()
public int getNumDataNodes()
public String[] getDataNodeHosts()
public int getNumZkServers()
public boolean isCreateRootDir()
public boolean isCreateWALDir()
public static StartMiniClusterOption.Builder builder()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.