static void dropTables(IDriver driver, String... tables) throws Exception {
    HiveConf queryConf = driver.getQueryState().getConf();
    SessionState.get().initTxnMgr(queryConf);
    
    queryConf.setBoolVar(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY, false);
    for (String table : tables) {
      executeStatementOnDriver("drop table if exists " + table, driver);
    }
    queryConf.setBoolVar(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY, true);
  }
Execute Hive CLI statement

@param cmd arbitrary statement to execute
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactorBase.java