@Override
    public void close(Reporter reporter) throws IOException {
      // Normally, I'd worry about the blanket false being passed in here, and that
      // it'd need to be integrated into an abort call for an OutputCommitter, but the
      // underlying recordwriter ignores it and throws it away, so it's irrelevant.
      getHiveWriter().close(false);
    }
Write to an Avro file from a Hive process.
ql/src/java/org/apache/hadoop/hive/ql/io/avro/AvroContainerOutputFormat.java