@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 | Method and Description |
---|---|
static StartMiniClusterOption.Builder |
builder() |
String[] |
getDataNodeHosts() |
Class<? extends 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() |
public int getNumMasters()
public int getNumAlwaysStandByMasters()
public Class<? extends 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–2021 The Apache Software Foundation. All rights reserved.