@Override public void run() { hiveServer2.stop(); } };
private void stopHiveServer() { if (server != null) { // kill server server.stop(); } }
protected static void stopHiveServer2() throws Exception { if (hiveServer2 != null) { hiveServer2.stop(); } }
protected static void stopHiveServer2() throws Exception { if (hiveServer2 != null) { hiveServer2.stop(); } }
@Override public void process(WatchedEvent event) { super.process(event); if (event.getType().equals(Watcher.Event.EventType.NodeDeleted)) { // If there are no more active client sessions, stop the server if (cliService.getSessionManager().getOpenSessionCount() == 0) { LOG.warn("This instance of HiveServer2 has been removed from the list of server " + "instances available for dynamic service discovery. " + "The last client session has ended - will shutdown now."); HiveServer2.this.stop(); } } } }
@AfterClass public static void afterTests() throws Exception { hiveServer2.stop(); } }
@AfterClass public static void afterTests() { hiveServer2.stop(); } }
if (server != null) { try { server.stop(); } catch (Throwable t) { LOG.info("Exception caught when calling stop of HiveServer2 before retrying start", t);
ShutdownHookManager.addShutdownHook(() -> hiveServer2.stop());
@Override public void run() { hiveServer2.stop(); } };
@Override protected void afterTest() { if (hiveServer2 != null) { hiveServer2.stop(); } }
@Override public void run() { hiveServer2.stop(); } };
@Override public void run() { hiveServer2.stop(); } };
@Override public void stop() { if (isRunning()) { server.stop(); } }
@Override public void stop(boolean cleanUp) throws Exception { LOG.info("HIVESERVER2: Stopping HiveServer2 on port: {}", hiveServer2Port); hiveServer2.stop(); if (cleanUp) { cleanUp(); } }
@Override public void destroy() throws DestroyUnitException { try { statement.close(); connection.close(); } catch (SQLException e) { throw new DestroyUnitException("Failed to close hive connection", e); } hiveServer.stop(); }
public void shutdownCluster() { if (miniMR != null) { miniMR.shutdown(); } if (hdfsCluster != null) { hdfsCluster.shutdown(); } if (hiveServer2 != null) { hiveServer2.stop(); } } }
public void stop() { hiveServer2.stop(); HiveConf.setHiveSiteLocation(originalHiveSiteLocation); try { FileUtils.deleteDirectory(new File(tempFolderPath)); } catch (IOException e) { throw new RuntimeException(e); } }
public void stop() throws IOException { resetSystemProperties(); if (tServer != null) { tServer.stop(); } if (hiveServer != null) { hiveServer.stop(); } LOG.info("Hive Minicluster service shut down."); tServer = null; hiveServer = null; hadoopConf = null; }
@SuppressWarnings("unused") public static void shutdown() { if (hiveServer != null) { hiveServer.stop(); } if (dfsCluster != null) { dfsCluster.shutdown(); } if (zkServer != null) { zkServer.shutdown(); } }