public void compact(TableName tableName, boolean major) throws IOException {
    getMiniHBaseCluster().compact(tableName, major);
  }
Compact all of a table's reagion in the mini hbase cluster
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java