static void runCompaction(HiveConf conf, String dbName, String tblName, CompactionType compactionType,
      boolean isQueryBased, String... partNames) throws Exception {
    runCompaction(conf, dbName, tblName, compactionType, isQueryBased, null, partNames);
  }
Trigger a compaction run.
@param conf hive configuration
@param dbName database name
@param tblName table name
@param compactionType major/minor
@param isQueryBased true, if query based compaction should be run
@param partNames partition names
@throws Exception compaction cannot be started.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorTestUtil.java