@Override
  public RecordWriter<WritableComparable<?>, HCatRecord>
  getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException {
    String name = getOutputName(context);
    return new DefaultRecordWriterContainer(context,
      getBaseOutputFormat().getRecordWriter(null, new JobConf(context.getConfiguration()), name, InternalUtil.createReporter(context)));
  }
Get the record writer for the job. Uses the storagehandler's OutputFormat
to get the record writer.
@param context the information about the current task.
@return a RecordWriter to write the output for the job.
@throws IOException
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/DefaultOutputFormatContainer.java