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

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

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

HBaseTestingUtility.cleanupTestDir介绍

暂无

代码示例

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

@After
public void tearDown() throws IOException {
 counter.set(0);
 scanCompletedCounter.set(0);
 latch = new CountDownLatch(3);
 HBaseTestingUtility.closeRegionAndWAL(region);
 testUtil.cleanupTestDir();
}

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

@After
public void tearDown() throws Exception {
 LOG.info("Cleaning test directory: " + TEST_UTIL.getDataTestDir());
 TEST_UTIL.cleanupTestDir();
}

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

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

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

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

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

@After
public void tearDown() throws Exception {
 HBaseTestingUtility.closeRegionAndWAL(region);
 testUtil.cleanupTestDir();
}

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

@AfterClass
public static void tearDown() throws Exception {
 testUtil.shutdownMiniCluster();
 testUtil.cleanupTestDir();
}

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

@After
public void stopCluster() throws Exception {
 UTIL.cleanupTestDir();
 UTIL.shutdownMiniCluster();
}

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

@After
public void tearDown() throws IOException {
 REGION.close(true);
 UTIL.cleanupTestDir();
}

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

@AfterClass
public static void tearDownAfterClass() throws IOException {
 TEST_UTIL.cleanupTestDir();
 GROUP.shutdownGracefully();
}

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

@AfterClass
public static void cleanup() throws Exception {
 // delete and recreate the test directory, ensuring a clean test dir between tests
 UTIL.cleanupTestDir();
 CleanerChore.shutDownChorePool();
}

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

@AfterClass
public static void tearDown() throws IOException {
 if (KDC != null) {
  KDC.stop();
 }
 TEST_UTIL.cleanupTestDir();
}

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

@After
public void stopCluster() throws Exception {
 TEST_UTIL.cleanupTestDir();
 TEST_UTIL.shutdownMiniCluster();
}

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

@After
public void stopCluster() throws Exception {
 TEST_UTIL.cleanupTestDir();
 TEST_UTIL.shutdownMiniCluster();
}

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

@AfterClass
public static void tearDown() throws IOException {
 if (KDC != null) {
  KDC.stop();
 }
 TEST_UTIL.cleanupTestDir();
}

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

@After
public void tearDown() throws Exception {
 EnvironmentEdgeManagerTestHelper.reset();
 LOG.info("Cleaning test directory: " + test_util.getDataTestDir());
 test_util.cleanupTestDir();
}

代码示例来源: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

@After
public void tearDown() throws Exception {
 EnvironmentEdgeManagerTestHelper.reset();
 LOG.info("Cleaning test directory: " + TEST_UTIL.getDataTestDir());
 TEST_UTIL.cleanupTestDir();
}

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

@After
public void tearDown() throws Exception {
 EnvironmentEdgeManagerTestHelper.reset();
 LOG.info("Cleaning test directory: " + TEST_UTIL.getDataTestDir());
 TEST_UTIL.cleanupTestDir();
}

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

@After
public void tearDown() throws IOException {
 // Region may have been closed, but it is still no harm if we close it again here using HTU.
 HBaseTestingUtility.closeRegionAndWAL(region);
 EnvironmentEdgeManagerTestHelper.reset();
 LOG.info("Cleaning test directory: " + TEST_UTIL.getDataTestDir());
 TEST_UTIL.cleanupTestDir();
}

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

@Test public void testTestDir() throws Exception {
 HBaseTestingUtility hbt = new HBaseTestingUtility();
 Path testdir = hbt.getDataTestDir();
 LOG.info("testdir=" + testdir);
 FileSystem fs = hbt.getTestFileSystem();
 assertTrue(!fs.exists(testdir));
 assertTrue(fs.mkdirs(testdir));
 assertTrue(hbt.cleanupTestDir());
}

相关文章

HBaseTestingUtility类方法