public static PigServer createPigServer(boolean stopOnFailure) throws ExecException {
    return createPigServer(stopOnFailure, new Properties());
  }
Create a new HiveConf and set properties necessary for unit tests.
hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/HCatBaseTest.java