org.apache.hadoop.hbase.HBaseTestingUtility.shutdownMiniDFSCluster()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中org.apache.hadoop.hbase.HBaseTestingUtility.shutdownMiniDFSCluster()方法的一些代码示例,展示了HBaseTestingUtility.shutdownMiniDFSCluster()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HBaseTestingUtility.shutdownMiniDFSCluster()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.HBaseTestingUtility
类名称:HBaseTestingUtility
方法名:shutdownMiniDFSCluster

HBaseTestingUtility.shutdownMiniDFSCluster介绍

[英]Shuts down instance created by call to #startMiniDFSCluster(int)or does nothing.
[中]关闭通过调用#startMiniDFSCluster(int)创建的实例或不执行任何操作。

代码示例

代码示例来源:origin: apache/hbase

@After
public void tearDown() throws IOException {
 TEST_UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void shutdownCluster() throws IOException {
 UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDownAfterClass() throws Exception {
 TEST_UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void stopCluster() throws Exception {
 UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDownAfterClass() throws Exception {
 cleanup();
 TEST_UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@After
public void tearDown() throws Exception {
 testUtil.cleanupTestDir();
 testUtil.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDownAfterClass() throws Exception {
 TEST_UTIL.shutdownMiniZKCluster();
 TEST_UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDownAfterClass() throws IOException {
 FACTORY.close();
 UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

/**
 * Stops mini hbase, zk, and hdfs clusters.
 * @throws IOException
 * @see #startMiniCluster(int)
 */
public void shutdownMiniCluster() throws Exception {
 LOG.info("Shutting down minicluster");
 shutdownMiniHBaseCluster();
 shutdownMiniDFSCluster();
 shutdownMiniZKCluster();
 cleanupTestDir();
 miniClusterRunning = false;
 LOG.info("Minicluster is down");
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDownAfterClass() throws Exception {
 LOG.info("Cleaning test directory: " + TEST_UTIL.getDataTestDir());
 TEST_UTIL.cleanupTestDir();
 TEST_UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDownAfterClass() throws Exception {
 TEST_UTIL_PEER.shutdownMiniHBaseCluster();
 TEST_UTIL.shutdownMiniHBaseCluster();
 TEST_UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDown() throws IOException, InterruptedException {
 if (EVENT_LOOP_GROUP != null) {
  EVENT_LOOP_GROUP.shutdownGracefully().sync();
 }
 TEST_UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@After
public void tearDown() throws Exception {
 cluster.shutdown();
 cluster.join();
 testUtil.shutdownMiniZKCluster();
 testUtil.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@After
public void tearDown() throws Exception {
 cluster.shutdown();
 cluster.join();
 testUtil.shutdownMiniZKCluster();
 testUtil.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

@AfterClass
public static void tearDownAfterClass() throws Exception {
 if (WALS != null) {
  WALS.close();
 }
 EVENT_LOOP_GROUP.shutdownGracefully().syncUninterruptibly();
 UTIL.shutdownMiniDFSCluster();
}

代码示例来源:origin: apache/hbase

assertTrue(ok);
 } finally {
 htu.shutdownMiniDFSCluster();
 htu.shutdownMiniDFSCluster();
  blocksDistribution.getTopHosts().size());
} finally {
 htu.shutdownMiniDFSCluster();

代码示例来源:origin: apache/hbase

util.shutdownMiniDFSCluster();
util.cleanupTestDir();

代码示例来源:origin: apache/hbase

fs.delete(cf1Dir, true);
fs.delete(cf2Dir, true);
util.shutdownMiniDFSCluster();

代码示例来源:origin: apache/hbase

assertFalse(appenders[i].isException());
TEST_UTIL.shutdownMiniDFSCluster();

代码示例来源:origin: apache/hbase

util1.shutdownMiniDFSCluster();

相关文章

HBaseTestingUtility类方法