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

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

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

HBaseTestingUtility.shutdownMiniZKCluster介绍

暂无

代码示例

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

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

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

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

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

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

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

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

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

@AfterClass
public static void cleanupTest() throws Exception {
 UTIL.shutdownMiniZKCluster();
}

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

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

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

@After
public void after() throws IOException {
 UTIL.shutdownMiniZKCluster();
}

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

@AfterClass
public static void cleanupTest() throws Exception {
 UTIL.shutdownMiniZKCluster();
}

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

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

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

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

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

@AfterClass
public static void cleanupTest() throws Exception {
 try {
  CONNECTION.close();
  UTIL.shutdownMiniZKCluster();
 } catch (Exception e) {
  LOG.warn("problem shutting down cluster", e);
 }
}

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

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

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

@AfterClass
public static void tearDown() throws Exception {
 master.stop("Shutdown");
 UTIL.shutdownMiniZKCluster();
}

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

@After
public void teardown() throws Exception {
 if (executorService != null) {
  executorService.shutdown();
 }
 TEST_UTIL.shutdownMiniZKCluster();
}

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

@After
public void teardown() throws IOException, KeeperException {
 master.stop("");
 if (slm != null) slm.stop();
 TEST_UTIL.shutdownMiniZKCluster();
}

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

@After
public void tearDown() throws Exception {
 server.stop("Test complete");
 Threads.shutdown(serverThread);
 TEST_UTIL.shutdownMiniZKCluster();
}

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

@After
public void tearDown() throws IOException {
 if (rpcClient != null) {
  rpcClient.close();
 }
 if (master != null) {
  master.stopMaster();
 }
 testUtil.shutdownMiniZKCluster();
}

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

@Test
public void testMiniZooKeeperWithOneServer() throws Exception {
 HBaseTestingUtility hbt = new HBaseTestingUtility();
 MiniZooKeeperCluster cluster1 = hbt.startMiniZKCluster();
 try {
  assertEquals(0, cluster1.getBackupZooKeeperServerNum());
  assertTrue((cluster1.killCurrentActiveZooKeeperServer() == -1));
 } finally {
  hbt.shutdownMiniZKCluster();
 }
}

相关文章

HBaseTestingUtility类方法