use of org.apache.hadoop.hbase.StartTestingClusterOption in project hbase by apache.
the class TestMetaShutdownHandler method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
StartTestingClusterOption option = StartTestingClusterOption.builder().numRegionServers(3).rsClass(MyRegionServer.class).numDataNodes(3).build();
TEST_UTIL.startMiniCluster(option);
}
use of org.apache.hadoop.hbase.StartTestingClusterOption in project hbase by apache.
the class TestMigrateNamespaceTable method setUp.
@BeforeClass
public static void setUp() throws Exception {
StartTestingClusterOption option = StartTestingClusterOption.builder().numMasters(1).numAlwaysStandByMasters(1).numRegionServers(1).build();
UTIL.startMiniCluster(option);
}
use of org.apache.hadoop.hbase.StartTestingClusterOption in project hbase by apache.
the class TestShutdownBackupMaster method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
UTIL.getConfiguration().setClass(HConstants.MASTER_IMPL, MockHMaster.class, HMaster.class);
StartTestingClusterOption option = StartTestingClusterOption.builder().numMasters(2).numRegionServers(2).numDataNodes(2).build();
UTIL.startMiniCluster(option);
UTIL.waitUntilAllSystemRegionsAssigned();
}
use of org.apache.hadoop.hbase.StartTestingClusterOption in project hbase by apache.
the class TestRegionsRecoveryConfigManager method setup.
@Before
public void setup() throws Exception {
conf = HBASE_TESTING_UTILITY.getConfiguration();
conf.unset("hbase.regions.recovery.store.file.ref.count");
conf.unset("hbase.master.regions.recovery.check.interval");
StartTestingClusterOption option = StartTestingClusterOption.builder().masterClass(TestHMaster.class).numRegionServers(1).numDataNodes(1).build();
HBASE_TESTING_UTILITY.startMiniCluster(option);
cluster = HBASE_TESTING_UTILITY.getMiniHBaseCluster();
}
use of org.apache.hadoop.hbase.StartTestingClusterOption in project hbase by apache.
the class TestSplitTransactionOnCluster method before.
@BeforeClass
public static void before() throws Exception {
TESTING_UTIL.getConfiguration().setInt(HConstants.HBASE_BALANCER_PERIOD, 60000);
StartTestingClusterOption option = StartTestingClusterOption.builder().masterClass(MyMaster.class).numRegionServers(NB_SERVERS).numDataNodes(NB_SERVERS).build();
TESTING_UTIL.startMiniCluster(option);
}
Aggregations