@Override
  public void checkOutputSpecs(final FileSystem ignored, final JobConf job) throws IOException {
    realOutputFormat.checkOutputSpecs(ShimLoader.getHadoopShims().getHCatShim().createJobContext(job, null));
  }
A Parquet OutputFormat for Hive (with the deprecated package mapred)
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/MapredParquetOutputFormat.java