hadoop - 关于不推荐使用的方法ParquetFileReader.readFooter

标签 hadoop parquet

我看到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/

相关文章:

hadoop - Zeppelin 的 Hive 解释器抛出空指针异常

使用 spark-submit 时出现 Hadoop 错误

hadoop - 在Apache Hive中,具有大量外部表的DB花费太长时间来进行DROP CASCADE

hadoop - 在具有 JSON 数据的 Parquet 文件上创建 Hive 表

scala - 单元测试 Spark 数据帧转换链接

scala - 如果 csv 列标题包含空格,则在 Spark 中将 csv 转换为 parquet 会出错

hadoop - 使用 Cloudera Hbase 需要任何许可证吗?

hadoop - 如何在 apache zeppelin 中使用 hdfs shell 命令?

sql - hadoop操作只写一行?

python - PySpark 将空字符串转换为 null 并写入 Parquet