@BeforeClass public static void setupBeforeClass() throws Exception { Configuration conf = util.getConfiguration(); conf.setInt("hbase.hfile.compaction.discharger.interval", Integer.MAX_VALUE); util.startMiniCluster(3); }
@BeforeClass public static void setupBeforeClass() throws Exception { conf = TEST_UTIL.getConfiguration(); // Enable favored nodes based load balancer conf.setClass(HConstants.HBASE_MASTER_LOADBALANCER_CLASS, LoadOnlyFavoredStochasticBalancer.class, LoadBalancer.class); conf.setLong("hbase.master.balancer.stochastic.maxRunningTime", 30000); conf.setInt("hbase.master.balancer.stochastic.moveCost", 0); conf.setBoolean("hbase.master.balancer.stochastic.execute.maxSteps", true); conf.set(BaseLoadBalancer.TABLES_ON_MASTER, "none"); }
@BeforeClass public static void setUpBeforeClass() throws Exception { TestWALReplay.setUpBeforeClass(); TEST_UTIL.getConfiguration().setBoolean(WALSplitter.SPLIT_WRITER_CREATION_BOUNDED, true); } }
@BeforeClass public static void before() throws Exception { Configuration conf = UTIL.getConfiguration(); conf.set(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY, CustomObserver.class.getName()); conf.setStrings( CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY, MasterSyncObserver.class.getName(), CPMasterObserver.class.getName()); conf.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 5); conf.setBoolean(QuotaUtil.QUOTA_CONF_KEY, true); conf.setClass("hbase.coprocessor.regionserver.classes", CPRegionServerObserver.class, RegionServerObserver.class); UTIL.startMiniCluster(); waitForQuotaInitialize(UTIL); ADMIN = UTIL.getAdmin(); }
/** * @throws Exception if starting the mini cluster or getting the filesystem fails */ @BeforeClass public static void setUpBeforeClass() throws Exception { conf.setBoolean(BackupRestoreConstants.BACKUP_ENABLE_KEY, true); TEST_UTIL.startMiniZKCluster(); TEST_UTIL.startMiniCluster(1); fs = FileSystem.get(conf); }
@BeforeClass public static void setUpBeforeClass() throws Exception { // don't let hdfs client to choose a new replica when dn down TEST_UTIL.getConfiguration() .setBoolean("dfs.client.block.write.replace-datanode-on-failure.enable", false); TEST_UTIL.getConfiguration().setLong("hbase.regionserver.hlog.check.lowreplication.interval", CHECK_LOW_REPLICATION_INTERVAL); TEST_UTIL.startMiniDFSCluster(3); TEST_UTIL.startMiniZKCluster(); }
@BeforeClass public static void setUp() throws Exception { UTIL.getConfiguration().setBoolean("hbase.write.hbck1.lock.file", false); UTIL.startMiniCluster(1); }
@BeforeClass public static void setUp() throws Exception { conf.setBoolean(BackupRestoreConstants.BACKUP_ENABLE_KEY, true); BackupManager.decorateMasterConfiguration(conf); BackupManager.decorateRegionServerConfiguration(conf); cluster = UTIL.startMiniCluster(); conn = UTIL.getConnection(); }
@BeforeClass public static void setUpBeforeClass() throws Exception { TestWALSplit.setUpBeforeClass(); TEST_UTIL.getConfiguration().setBoolean(WALSplitter.SPLIT_WRITER_CREATION_BOUNDED, true); }
@BeforeClass public static void setUp() throws Exception { final Configuration conf = TEST_UTIL.getConfiguration(); conf.setBoolean(CoprocessorHost.COPROCESSORS_ENABLED_CONF_KEY, true); TEST_UTIL.startMiniCluster(5); }
@BeforeClass public static void setUp() throws Exception { conf.setBoolean(BackupRestoreConstants.BACKUP_ENABLE_KEY, true); BackupManager.decorateMasterConfiguration(conf); BackupManager.decorateRegionServerConfiguration(conf); cluster = UTIL.startMiniCluster(); conn = UTIL.getConnection(); }
@BeforeClass public static void setUpBeforeClass() throws Exception { TestWALSplit.setUpBeforeClass(); TEST_UTIL.getConfiguration().setBoolean(HConstants.ENABLE_WAL_COMPRESSION, true); } }
@BeforeClass public static void setupBeforeClass() throws Exception { Configuration conf = UTIL.getConfiguration(); conf.set(CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY, BuggyMasterObserver.class.getName()); conf.setBoolean(CoprocessorHost.ABORT_ON_ERROR_KEY, true); conf.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 2); // Fail fast UTIL.startMiniCluster(); }
/** * @throws java.lang.Exception */ @BeforeClass public static void setUpBeforeClass() throws Exception { // Turn off codec use TEST_UTIL.getConfiguration().set("hbase.client.default.rpc.codec", ""); TEST_UTIL.startMiniCluster(1); }
@BeforeClass public static void setUp() throws Exception { Configuration conf = TEST_UTIL.getConfiguration(); conf.setBoolean(QuotaUtil.QUOTA_CONF_KEY, true); TEST_UTIL.startMiniCluster(1); }
/** * @throws java.lang.Exception */ @BeforeClass public static void setUpBeforeClass() throws Exception { // Just to prevent fastpath FIFO from picking calls up bypassing the queue. TEST_UTIL.getConfiguration().set( RpcExecutor.CALL_QUEUE_TYPE_CONF_KEY, "deadline"); TEST_UTIL.startMiniCluster(SLAVES); }
@BeforeClass public static void setupBeforeClass() throws Exception { Configuration conf = TEST_UTIL.getConfiguration(); conf.set(RSRpcServices.MASTER_RPC_SCHEDULER_FACTORY_CLASS, "org.apache.hadoop.hbase.regionserver.MasterFifoRpcSchedulerFactory"); conf.setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 5); conf.setInt(MasterFifoRpcScheduler.MASTER_SERVER_REPORT_HANDLER_COUNT, 2); TEST_UTIL.startMiniCluster(); }
@BeforeClass public static void setUpBeforeClass() throws Exception { Configuration conf = TEST_UTIL.getConfiguration(); // Need HFileV3 conf.setInt(HFile.FORMAT_VERSION_KEY, HFile.MIN_FORMAT_VERSION_WITH_TAGS); // effectively limit max result size to one entry if it has tags conf.setLong(HConstants.HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE_KEY, SCANNER_DATA_LIMIT); conf.setBoolean(ScannerCallable.LOG_SCANNER_ACTIVITY, true); TEST_UTIL.startMiniCluster(1); }
@BeforeClass public static void setupBeforeClass() throws Exception { Configuration conf = UTIL.getConfiguration(); conf.set(CoprocessorHost.REGIONSERVER_COPROCESSOR_CONF_KEY, JMXListener.class.getName()); conf.setInt("regionserver.rmi.registry.port", connectorPort); UTIL.startMiniCluster(); }
@BeforeClass public static void provisionCluster() throws Exception { conf = util.getConfiguration(); // We don't check persistence in HFiles in this test, but if we ever do we will // need this where the default hfile version is not 3 (i.e. 0.98) conf.setInt("hfile.format.version", 3); conf.set("hbase.coprocessor.region.classes", TTLCheckingObserver.class.getName()); util.startMiniCluster(); }