private static InputJobInfo getJobInfo(Configuration conf)
    throws IOException {
    InputJobInfo inputJobInfo = HCatUtil.getLastInputJobInfosFromConf(conf);
    if (inputJobInfo == null) {
      throw new IOException("job information not found in JobContext."
        + " HCatInputFormat.setInput() not called?");
    }

    return inputJobInfo;
  }
Gets the InputJobInfo object by reading the Configuration and deserializing
the string. If InputJobInfo is not present in the configuration, throws an
exception since that means HCatInputFormat.setInput has not been called.
@param conf the Configuration object
@return the InputJobInfo object
@throws IOException the exception
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/HCatBaseInputFormat.java