我看到ParquetFileReader.readFooter
中已弃用parquet-hadoop-1.11.0.jar
。应该使用什么类或哪种方法代替?
最佳答案
根据代码注释,应使用 ParquetFileReader#open(InputFile, ParquetReadOptions)
。
/**
* Reads the meta data block in the footer of the file
* @param configuration a configuration
* @param file the parquet File
* @return the metadata blocks in the footer
* @throws IOException if an error occurs while reading the file
* @deprecated will be removed in 2.0.0;
* use {@link ParquetFileReader#open(InputFile, ParquetReadOptions)}
*/
@Deprecated
public static final ParquetMetadata readFooter(Configuration configuration, Path file) throws IOException {
关于hadoop - 关于不推荐使用的方法ParquetFileReader.readFooter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64009960/