@InterfaceAudience.Public public final class TestingHBaseClusterOption extends Object
TestingHBaseCluster
(including an hbase,
dfs and zookeeper clusters) in test. The options include HDFS options to build mini dfs cluster,
Zookeeper options to build mini zk cluster, and mostly HBase options to build mini hbase cluster.
To create an object, use a TestingHBaseClusterOption.Builder
. Example usage:
TestingHBaseClusterOption option = TestingHBaseClusterOption.builder(). .numMasters(3).createWALDir(true).build();Default values can be found in
TestingHBaseClusterOption.Builder
.Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.testing.TestingHBaseClusterOption.Builder |
builder()
Returns a new builder.
|
org.apache.hadoop.conf.Configuration |
conf() |
String[] |
getDataNodeHosts() |
String |
getExternalDfsUri() |
String |
getExternalZkConnectString() |
int |
getNumAlwaysStandByMasters() |
int |
getNumDataNodes() |
int |
getNumMasters() |
int |
getNumRegionServers() |
int |
getNumZkServers() |
List<Integer> |
getRsPorts() |
boolean |
isCreateRootDir() |
boolean |
isCreateWALDir() |
String |
toString() |
public org.apache.hadoop.conf.Configuration conf()
public int getNumMasters()
public int getNumAlwaysStandByMasters()
public int getNumRegionServers()
public List<Integer> getRsPorts()
public int getNumDataNodes()
public String[] getDataNodeHosts()
public int getNumZkServers()
public boolean isCreateRootDir()
public boolean isCreateWALDir()
public String getExternalDfsUri()
public String getExternalZkConnectString()
public static org.apache.hadoop.hbase.testing.TestingHBaseClusterOption.Builder builder()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.