parquet-avro/src/main/java/org/apache/parquet/avro/AvroParquetOutputFormat.java
public static void setSchema(Job job, Schema schema) {
    AvroWriteSupport.setSchema(ContextUtil.getConfiguration(job), schema);
  }
public static void setSchema(Job job, Schema schema) {
    AvroWriteSupport.setSchema(ContextUtil.getConfiguration(job), schema);
  }
Set the Avro schema to use for writing. The schema is translated into a Parquet
schema so that the records can be written in Parquet format. It is also
stored in the Parquet metadata so that records can be reconstructed as Avro
objects at read time without specifying a read schema.
@param job a job
@param schema a schema for the data that will be written
@see org.apache.parquet.avro.AvroParquetInputFormat#setAvroReadSchema(org.apache.hadoop.mapreduce.Job, org.apache.avro.Schema)