12591260126112621263126412651266126712681269
} 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;
10341035103610371038103910401041104210431044
12141215121612171218121912201221122212231224
809810811812813814815816817818819
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;
179180181182183184185186187188189
} 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;
12701271127212731274127512761277127812791280
} 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); } break;
12181219122012211222122312241225122612271228
171172173174175176177178179180181
12361237123812391240124112421243124412451246
213214215216217218219220221222223
} 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;