org.apache.hadoop.hbase.HBaseTestingUtility.shutdownMiniCluster() - java examples

Here are the examples of the java api org.apache.hadoop.hbase.HBaseTestingUtility.shutdownMiniCluster() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

146 Examples 7

19 View Complete Implementation : TestRegionsRecoveryConfigManager.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    HBASE_TESTING_UTILITY.shutdownMiniCluster();
}

19 View Complete Implementation : TestSplitTransactionOnCluster.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void after() throws Exception {
    TESTING_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestRegionObserverInterface.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDownAfterClreplaced() throws Exception {
    util.shutdownMiniCluster();
}

19 View Complete Implementation : LocalHBaseCluster.java
Copyright Apache License 2.0
Author : hadooparchitecturebook
public void shutDown() throws Exception {
    htu1.shutdownMiniCluster();
}

19 View Complete Implementation : TestHBaseQPSResourceAllocator.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    cleanupSparkContexts();
    cleanupMetaClient();
    if (utility != null) {
        utility.shutdownMiniCluster();
    }
}

19 View Complete Implementation : TestAsyncAdminBuilder.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    IOUtils.closeQuietly(ASYNC_CONN);
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestClearRegionBlockCache.java
Copyright Apache License 2.0
Author : apache
@After
public void teardown() throws Exception {
    HTU.shutdownMiniCluster();
}

19 View Complete Implementation : TestRefreshHFilesBase.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    HTU.shutdownMiniCluster();
}

19 View Complete Implementation : TestReplicationSourceManager.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDownAfterClreplaced() throws Exception {
    if (manager != null) {
        manager.join();
    }
    utility.shutdownMiniCluster();
}

19 View Complete Implementation : AbstractTestDLS.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDown() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestFuzzyRowAndColumnRangeFilter.java
Copyright Apache License 2.0
Author : fengchen8086
/**
 * @throws java.lang.Exception
 */
@AfterClreplaced
public static void tearDownAfterClreplaced() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestBulkDeleteProtocol.java
Copyright Apache License 2.0
Author : fengchen8086
// @Ignore @AfterClreplaced
public static void tearDownAfterClreplaced() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestGetInfoPort.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    testUtil.shutdownMiniCluster();
}

19 View Complete Implementation : TestJsonSerde.java
Copyright Apache License 2.0
Author : twitter
public static void tearDownAfterClreplaced() throws Exception {
    try {
        if (hbaseConnection != null) {
            hbaseConnection.close();
        }
    } finally {
        UTIL.shutdownMiniCluster();
    }
}

19 View Complete Implementation : AbstractTimelineReaderHBaseTestBase.java
Copyright Apache License 2.0
Author : apache
public static void tearDown() throws Exception {
    if (server != null) {
        server.stop();
        server = null;
    }
    if (util != null) {
        util.shutdownMiniCluster();
    }
}

19 View Complete Implementation : TestFailedProcCleanup.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestServerLoadDurability.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    utility.shutdownMiniCluster();
}

19 View Complete Implementation : TestHdfsSnapshotHRegion.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    client.deleteSnapshot(baseDir, SNAPSHOT_NAME);
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TableSnapshotInputFormatTestBase.java
Copyright Apache License 2.0
Author : apache
public void tearDownCluster() throws Exception {
    UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : AbstractTestFSWAL.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDownAfterClreplaced() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestBlockReorderMultiBlocks.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDownAfterClreplaced() throws Exception {
    htu.shutdownMiniCluster();
}

19 View Complete Implementation : TestConnectionCache.java
Copyright Apache License 2.0
Author : apache
/**
 * test for ConnectionCache cleaning expired Connection
 */
@Test
public void testConnectionCreplaced() throws Exception {
    UTIL.startMiniCluster();
    // 1s for clean interval & 5s for maxIdleTime
    ConnectionCache cache = new ConnectionCache(UTIL.getConfiguration(), UserProvider.instantiate(UTIL.getConfiguration()), 1000, 5000);
    ConnectionCache.ConnectionInfo info = cache.getCurrentConnection();
    replacedertEquals(false, info.connection.isClosed());
    Thread.sleep(7000);
    replacedertEquals(true, info.connection.isClosed());
    UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestHBaseTestingUtilSpinup.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void afterClreplaced() throws Exception {
    UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestClusterId.java
Copyright Apache License 2.0
Author : cloud-software-foundation
@After
public void tearDown() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
    if (rst != null && rst.getRegionServer() != null) {
        rst.getRegionServer().stop("end of test");
        rst.join();
    }
}

19 View Complete Implementation : AbstractTestRestartCluster.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestConnectionCache.java
Copyright Apache License 2.0
Author : fengchen8086
/**
 * test for ConnectionCache cleaning expired HConnection
 */
@Test
public void testConnectionCreplaced() throws Exception {
    UTIL.startMiniCluster();
    // 1s for clean interval & 5s for maxIdleTime
    ConnectionCache cache = new ConnectionCache(UTIL.getConfiguration(), UserProvider.instantiate(UTIL.getConfiguration()), 1000, 5000);
    ConnectionCache.ConnectionInfo info = cache.getCurrentConnection();
    replacedertEquals(false, info.connection.isClosed());
    Thread.sleep(7000);
    replacedertEquals(true, info.connection.isClosed());
    UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestZooKeeperScanPolicyObserver.java
Copyright Apache License 2.0
Author : fengchen8086
// @AfterClreplaced
public static void tearDownAfterClreplaced() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestSnapshotFromMaster.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void cleanupTest() throws Exception {
    try {
        UTIL.shutdownMiniCluster();
    } catch (Exception e) {
    // NOOP;
    }
}

19 View Complete Implementation : InMemoryHBaseCluster.java
Copyright Apache License 2.0
Author : flipkart-incubator
@Override
public void end() throws Exception {
    utility.shutdownMiniCluster();
}

19 View Complete Implementation : TestRSGroupsBase.java
Copyright Apache License 2.0
Author : apache
public static void tearDownAfterClreplaced() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestCreateTableHandler.java
Copyright Apache License 2.0
Author : Huawei-Hadoop
@After
public void tearDown() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
    throwException = true;
}

19 View Complete Implementation : TestMirroringTableStateManager.java
Copyright Apache License 2.0
Author : apache
@After
public void after() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestOmidTableManager.java
Copyright Apache License 2.0
Author : YahooArchive
@AfterClreplaced
public void tearDownClreplaced() throws Exception {
    hBaseAdmin.close();
    hBaseTestUtil.shutdownMiniCluster();
}

19 View Complete Implementation : TestHBaseWriter.java
Copyright Apache License 2.0
Author : apache
public void tearDown() throws Exception {
    util.shutdownMiniCluster();
    util.shutdownMiniZKCluster();
}

19 View Complete Implementation : HFileTargetIT.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDownClreplaced() throws Exception {
    HBASE_TEST_UTILITY.shutdownMiniCluster();
}

19 View Complete Implementation : TestSecurityHeadersFilter.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    REST_TEST_UTIL.shutdownServletContainer();
    TEST_UTIL.shutdownMiniCluster();
}

19 View Complete Implementation : TestRegionStateStore.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    util.shutdownMiniCluster();
}

19 View Complete Implementation : TestCreateTableProcedure2.java
Copyright Apache License 2.0
Author : fengchen8086
@After
public void tearDown() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
    TEST_UTIL.shutdownMiniZKCluster();
}

18 View Complete Implementation : WordCountHBaseIT.java
Copyright Apache License 2.0
Author : apache
@After
public void tearDown() throws Exception {
    hbaseTestUtil.shutdownMiniCluster();
}

18 View Complete Implementation : EmbeddedHBase.java
Copyright Apache License 2.0
Author : apache
public void shutdown() {
    try {
        util.shutdownMiniCluster();
    } catch (Throwable t) {
        LOG.info("Got an exception, " + t, t.getCause());
        try {
            util.shutdownMiniCluster();
        } catch (Throwable t1) {
        // ignored
        }
    }
}

18 View Complete Implementation : TestHBaseBase.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void shutdownHBase() {
    try {
        hbase.shutdownMiniCluster();
    } catch (Exception e) {
        LOGGER.error("Error to shutdown mini hbase cluster: " + e.getMessage(), e);
    } finally {
        hbase = null;
    }
}

18 View Complete Implementation : TestWithHBaseCoprocessor.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void shutdownHBase() {
    try {
        hbase.shutdownMiniCluster();
    } catch (Exception e) {
        LOG.error("Error to shutdown mini cluster: " + e.getMessage(), e);
        throw new IllegalStateException(e);
    }
}

18 View Complete Implementation : TestAsyncHBaseSink.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDown() throws Exception {
    testUtility.shutdownMiniCluster();
}

18 View Complete Implementation : TestHBaseSink.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDownOnce() throws Exception {
    testUtility.shutdownMiniCluster();
}

18 View Complete Implementation : TestHBaseStorageFlowActivity.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDownAfterClreplaced() throws Exception {
    if (util != null) {
        util.shutdownMiniCluster();
    }
}

18 View Complete Implementation : TestHelloHBase.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void afterClreplaced() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

18 View Complete Implementation : TestAsyncAggregationClient.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDown() throws Exception {
    CONN.close();
    UTIL.shutdownMiniCluster();
}

18 View Complete Implementation : TestRpcControllerFactory.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDown() throws Exception {
    UTIL.shutdownMiniCluster();
}

18 View Complete Implementation : TestCoprocessorServiceBackwardCompatibility.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDownAfter() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
}

18 View Complete Implementation : TestHttpProxyExample.java
Copyright Apache License 2.0
Author : apache
@AfterClreplaced
public static void tearDown() throws Exception {
    if (PROXY != null) {
        PROXY.stop();
    }
    UTIL.shutdownMiniCluster();
}