13531354135513561357135813591360136113621363
} catch (MasterNotRunningException e) { LOG.error("Master not running"); System.exit(0); } try { adm.shutdown(); } catch (Throwable t) { LOG.error("Failed to stop master", t); System.exit(-1); } } else {
216217218219220221222223224225226
} catch (IOException e) { LOG.error("Got IOException: " +e.getMessage(), e); return 1; } try { adm.shutdown(); } catch (Throwable t) { LOG.error("Failed to stop master", t); return 1; } return 0;
795796797798799800801802803804805
try { if (LocalHBaseCluster.isLocal(conf)) { LocalHBaseCluster.doLocal(conf); } HBaseAdmin adm = new HBaseAdmin(conf); adm.shutdown(); } catch (Throwable t) { LOG.error( "Can not stop master", t); System.exit(-1); } break;
186187188189190191192193194195196
} catch (IOException e) { LOG.error("Got IOException: " +e.getMessage(), e); return -1; } try { adm.shutdown(); } catch (Throwable t) { LOG.error("Failed to stop master", t); return -1; } return 0;
12511252125312541255125612571258125912601261
} catch (MasterNotRunningException e) { LOG.error("master is not running"); System.exit(0); } try { adm.shutdown(); } catch (Throwable t) { LOG.error( "Can not stop master", t); System.exit(-1); } break;
10291030103110321033103410351036103710381039
167168169170171172173174175176177
} catch (ZooKeeperConnectionException e) { LOG.error("ZooKeeper not available"); return -1; } try { adm.shutdown(); } catch (Throwable t) { LOG.error("Failed to stop master", t); return -1; } return 0;
214215216217218219220221222223224
173174175176177178179180181182183
987988989990991992993994995996997