public void initializeCluster(int numSlaves) throws Exception {
    if (isDistributedCluster()) {
      createDistributedHBaseCluster();
      checkNodeCount(numSlaves);
    } else {
      startMiniCluster(numSlaves);
    }
  }
Initializes the state of the cluster. It starts a new in-process mini cluster, OR if we are
given an already deployed distributed cluster it initializes the state.
@param numSlaves Number of slaves to start up if we are booting a mini cluster. Otherwise we
                 check whether this many nodes are available and throw an exception if not.
hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java