private static PrintWriter createScript(List<String> commands, String fileName,
      String scriptLocation) throws IOException {
    FileWriter fw = new FileWriter(scriptLocation + "/" + fileName);
    PrintWriter pw = new PrintWriter(fw);
    for(String cmd : commands) {
      pw.println(cmd + ";");
    }
    return pw;
  }
todo: handle exclusion list
Figures out which tables to make Acid, MM and (optionally, performs the operation)
ql/src/java/org/apache/hadoop/hive/ql/util/UpgradeTool.java