code: private Schema createAvroSchema(final Configuration configuration, final MetadataFilter filter) throws IOException {
      final ParquetMetadata footer = ParquetFileReader.readFooter(configuration, parquetFilePath, filter);
      final AvroSchemaConverter converter = new AvroSchemaConverter();
      final MessageType schema = footer.getFileMetaData().getSchema();
      return converter.convert(schema);
    }
docs: Retrieve avro schema from parquet file.
  @param configuration Hadoop configuration.
  @param filter Filter for Avro metadata.
  @return avro schema from parquet file.
  @throws IOException if the Avro schema couldn't be parsed from the parquet file.