无法编译实木复合地板工具 [英] Cannot compile parquet-tools

查看:81
本文介绍了无法编译实木复合地板工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从parquet-mr 的存储库mr.git rel = noreferrer>此链接。我想要构建镶木地板工具,如此处

I cloned the repository of parquet-mr from this link. The I wanted to build parquet-tools as explained here:

cd parquet-mr/parquet-tools/
mvn clean package -Plocal

(我更新了 pom.xml 指向 com.twitter:parquet-hadoop:jar )的正确版本

(I updated pom.xml to point correct version of com.twitter:parquet-hadoop:jar)

这是我得到的编译错误:

This is the compilation error that I get:


[错误]编译错误:

[ INFO] ------------------------------------------------ -------------

[错误] / usr / local / parquet-mr-master / parquet-tools / src / main / java / org / apache / parquet /工具/命令/MergeCommand.java:[76,13]

找不到符号符号:方法
appendFile(org.apache.hadoop.conf.Configuration,org.apache.hadoop.fs。路径)
位置:类型为
的变量writer org.apache.parquet.hadoop.ParquetFileWriter

[错误]
/ usr /本地/parquet-mr-master/parquet-tools/src/main/java/org/apache/parquet/tools/command/MergeCommand.java:[82,29]
找不到符号symbol:方法
mergeMetadataFiles(java.util.List,org.apache.hadoop.conf.Configuration)
位置:类org.apache.parquet.hadoop.ParquetFileWriter

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/local/parquet-mr-master/parquet-tools/src/main/java/org/apache/parquet/tools/command/MergeCommand.java:[76,13]
cannot find symbol symbol: method appendFile(org.apache.hadoop.conf.Configuration,org.apache.hadoop.fs.Path) location: variable writer of type org.apache.parquet.hadoop.ParquetFileWriter
[ERROR] /usr/local/parquet-mr-master/parquet-tools/src/main/java/org/apache/parquet/tools/command/MergeCommand.java:[82,29] cannot find symbol symbol: method mergeMetadataFiles(java.util.List,org.apache.hadoop.conf.Configuration) location: class org.apache.parquet.hadoop.ParquetFileWriter


推荐答案

尝试首先在git中签出具体标签。

Try checking out a concrete tag in git first.

git checkout apache-parquet-1.9.0
cd parquet-mr/parquet-tools/
mvn clean package -Plocal

通过执行 git checkout ,所有 pom.xml 文件会说< version> 1.9.0< / version> 而不是< 1> 9.0-SNAPSHOT< / version>

By doing the git checkout, all the pom.xml files will say <version>1.9.0</version> instead of <version>1.9.0-SNAPSHOT</version>.

这篇关于无法编译实木复合地板工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆