parquet-hadoop/src/main/java/org/apache/parquet/hadoop/example/ExampleOutputFormat.java
public static void setSchema(Job job, MessageType schema) {
    GroupWriteSupport.setSchema(schema, ContextUtil.getConfiguration(job));
  }
public static void setSchema(Job job, MessageType schema) {
    GroupWriteSupport.setSchema(schema, ContextUtil.getConfiguration(job));
  }
set the schema being written to the job conf
@param job a job
@param schema the schema of the data