public static boolean isLocal(final Configuration c) {
    boolean mode =
      c.getBoolean(HConstants.CLUSTER_DISTRIBUTED, HConstants.DEFAULT_CLUSTER_DISTRIBUTED);
    return (mode == HConstants.CLUSTER_IS_LOCAL);
  }
@param c Configuration to check.
@return True if a 'local' address in hbase.master value.
hbase-server/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java