public static void setStorageHint(JobConf conf, String storehint)
throws ParseException, IOException {
String schema = conf.get(OUTPUT_SCHEMA);
if (schema == null)
throw new ParseException("Schema has not been set");
// for sanity check purpose only
Partition partition = new Partition(schema, storehint);
conf.set(OUTPUT_STORAGEHINT, storehint);