public static OutputJobInfo getJobInfo(Configuration conf) throws IOException {
    String jobString = conf.get(HCatConstants.HCAT_KEY_OUTPUT_INFO);
    if (jobString == null) {
      throw new HCatException(ErrorType.ERROR_NOT_INITIALIZED);
    }

    return (OutputJobInfo) HCatUtil.deserialize(jobString);
  }
Gets the HCatOuputJobInfo object by reading the Configuration and deserializing
the string. If InputJobInfo is not present in the configuration, throws an
exception since that means HCatOutputFormat.setOutput has not been called.
@param conf the job Configuration object
@return the OutputJobInfo object
@throws IOException the IO exception
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/HCatBaseOutputFormat.java