public void stopMaster() throws IOException {
    if (cpHost != null) {
      cpHost.preStopMaster();
    }
    stop("Stopped by " + Thread.currentThread().getName());
  }
Shutdown the cluster. Master runs a coordinated stop of all RegionServers and then itself.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java