/** * Stops Accumulo and Zookeeper processes. If stop is not called, there is a shutdown hook that is * setup to kill the processes. However its probably best to call stop in a finally block as soon * as possible. */ public void stop() throws IOException, InterruptedException { impl.stop(); }
@Override public void run() { try { MiniAccumuloClusterImpl.this.stop(); } catch (IOException e) { log.error("IOException while attempting to stop the MiniAccumuloCluster.", e); } catch (InterruptedException e) { log.error("The stopping of MiniAccumuloCluster was interrupted.", e); } } });
@After public void tearDown() throws Exception { if (cluster != null) try { cluster.stop(); } catch (Exception e) { // ignored } }
@After public void stopMac() throws Exception { if (null != mac) { mac.stop(); } }
@After public void stopMac() throws Exception { if (null != mac) { mac.stop(); } }
@After public void stopMac() throws Exception { if (null != proxyProcess) { log.info("Destroying proxy process"); proxyProcess.destroy(); log.info("Waiting for proxy termination"); proxyProcess.waitFor(); log.info("Proxy terminated"); } if (null != mac) { mac.stop(); } }
/** * Stops the MiniAccumuloCluster and related services if they are running. */ public static void stopMiniCluster() throws Exception { if (null != cluster) { try { cluster.stop(); } catch (Exception e) { log.error("Failed to stop minicluster", e); } } if (null != krb) { try { krb.stop(); } catch (Exception e) { log.error("Failed to stop KDC", e); } } }
Assert.assertEquals(0, cluster.exec(Admin.class, "stopAll").waitFor()); cluster.stop();
cluster.stop(); log.info("starting up"); cluster.start();
c.getInstance().getInstanceName(), "-t", tableName).waitFor()); cluster.stop();
Assert.assertFalse("Had more data to read from the peer", peerIter.hasNext()); } finally { peerCluster.stop();
getCluster().stop(); getCluster().start();
accumulo2.stop();
Assert.assertFalse("Had more data to read from the peer", peerIter.hasNext()); peerCluster.stop();
Assert.assertFalse("Had more data to read from the peer", peerIter.hasNext()); peerCluster.stop();
peer1Cluster.stop();