在MapReduce中读取Parquet格式文件时,默认会自动获取文件的Schema,不需要进行额外的设置即可读取。如果想获取指定文件的Schema,应该怎么做呢?
1、maven相关依赖
<properties>
...
<parquet.version>1.9.0</parquet.version>
...
</properties>
<dependency>
<groupId>org.apache.parquet</groupId>
<artifactId>parquet-column</artifactId>
<version>${parquet.version}</version>
</dependency>
<dependency>
<groupId>org.apache.parquet</groupId>
<artifactId>parquet-hadoop</artifactId>
<version>${parquet.version}</version>
</dependency>
<dependency>
<groupId>org.apache.parquet</groupId>
<artifactId>parquet-common</artifactId>
<version>${parquet.version}</version>
</dependency>
<dependency>
<groupId>org.apache.parquet</groupId>
&