Schema schema = null;
try {
schema = new Schema(schemaStr);
} catch (ParseException e) {
throw new ParseException("[" + zSchema + "] " + " is not a valid schema string: " + e.getMessage());
}
/* validity check on storage hint*/
if (zStorageHint == null) {
storageHintStr = "";
} else {
storageHintStr = zStorageHint.toString();
}
try {
new Partition(schemaStr, storageHintStr, null);
} catch (ParseException e) {
throw new ParseException("[" + zStorageHint + "] " + " is not a valid storage hint string: " + e.getMessage() );
} catch (IOException e) {
throw new ParseException("[" + zStorageHint + "] " + " is not a valid storage hint string: " + e.getMessage() );
}
Configuration conf = jobContext.getConfiguration();
conf.set(OUTPUT_SCHEMA, schemaStr);
conf.set(OUTPUT_STORAGEHINT, storageHintStr);