static void runCleaner(HiveConf hConf) throws Exception {
    // Wait for the cooldown period so the Cleaner can see last committed txn as the highest committed watermark
    Thread.sleep(MetastoreConf.getTimeVar(hConf, MetastoreConf.ConfVars.TXN_OPENTXN_TIMEOUT, TimeUnit.MILLISECONDS));

    HiveConf hiveConf = new HiveConf(hConf);
    Cleaner t = new Cleaner();
    t.setConf(hiveConf);
    t.init(new AtomicBoolean(true));
    t.run();
  }
Trigger a compaction cleaner.
@param hConf hive configuration
@throws Exception if cleaner cannot be started.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorTestUtil.java