@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public synchronized void stop() { super.stop(); // Release the HMS connection for this service thread Hive.closeCurrent(); }
@Override public synchronized void stop() { if (this.getServiceState() == STATE.STOPPED) { // The base composite-service is already stopped, don't do anything again. return; } if (serviceList.size() > 0) { stop(serviceList.size() - 1); } super.stop(); }
@Override public synchronized void stop() { super.stop(); shutdownTimeoutChecker(); if (backgroundOperationPool != null) { backgroundOperationPool.shutdown(); long timeout = hiveConf.getTimeVar( ConfVars.HIVE_SERVER2_ASYNC_EXEC_SHUTDOWN_TIMEOUT, TimeUnit.SECONDS); try { backgroundOperationPool.awaitTermination(timeout, TimeUnit.SECONDS); } catch (InterruptedException e) { LOG.warn("HIVE_SERVER2_ASYNC_EXEC_SHUTDOWN_TIMEOUT = " + timeout + " seconds has been exceeded. RUNNING background operations will be shut down", e); } backgroundOperationPool = null; } cleanupLoggingRootDir(); }
@Override public synchronized void start() { int i = 0; try { for (int n = serviceList.size(); i < n; i++) { Service service = serviceList.get(i); service.start(); } super.start(); } catch (Throwable e) { LOG.error("Error starting services " + getName(), e); // Note that the state of the failed service is still INITED and not // STARTED. Even though the last service is not started completely, still // call stop() on all services including failed service to make sure cleanup // happens. stop(i); throw new ServiceException("Failed to Start " + getName(), e); } }
LOG.info("Shutting down HiveServer2"); HiveConf hiveConf = this.getHiveConf(); super.stop(); if (hs2HARegistry != null) { hs2HARegistry.stop();
@Override public synchronized void stop() { super.stop(); }
@Override public synchronized void stop() { LOG.info("Shutting down HiveServer2"); super.stop(); }
@Override public synchronized void stop() { LOG.info("Shutting down HiveServer2"); super.stop(); }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public synchronized void stop() { super.stop(); // Release the HMS connection for this service thread Hive.closeCurrent(); }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public synchronized void stop() { ml.stop(); super.stop(); log.info("Stopped ML service"); }
@Override public synchronized void stop() { if (this.getServiceState() == STATE.STOPPED) { // The base composite-service is already stopped, don't do anything again. return; } if (serviceList.size() > 0) { stop(serviceList.size() - 1); } super.stop(); }
@Override public synchronized void stop() { if (this.getServiceState() == STATE.STOPPED) { // The base composite-service is already stopped, don't do anything again. return; } if (serviceList.size() > 0) { stop(serviceList.size() - 1); } super.stop(); }
@Override public synchronized void stop() { if (this.getServiceState() == STATE.STOPPED) { // The base composite-service is already stopped, don't do anything again. return; } if (serviceList.size() > 0) { stop(serviceList.size() - 1); } super.stop(); }
@Override public synchronized void stop() { if (this.getServiceState() == STATE.STOPPED) { // The base composite-service is already stopped, don't do anything again. return; } if (serviceList.size() > 0) { stop(serviceList.size() - 1); } super.stop(); }