elephantbird包生成失败:

scyqe7ek  于 2021-06-24  发布在  Pig
关注(0)|答案(2)|浏览(440)

我下载了elephantbird源代码,并试图通过运行“mvn包”进行构建,但出现以下错误:

[ERROR] Failed to execute goal com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.4:run (default) on project elephant-bird-core: Unable to find 'protoc' -> [Help 1]

我使用的是mvnversion3.0.3,我在mac和ubuntu上试过,但是我得到了相同的错误。
编辑1:
感谢lorand的评论,我通过升级协议缓冲区解决了上述问题。我还安装了thrift 0.7.0,但现在在elephant pig构建期间又出现了一个编译失败:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project elephant-bird-pig: Compilation failure: Compilation failure: [ERROR] /root/elephant-bird/pig/src/test/java/com/twitter/elephantbird/pig/util/TestThriftNameWritableConverter.java:[12,26] invalid inferred types for W; inferred type does not conform to declared bound(s)
vshtjzan

vshtjzan1#

确保您以前安装过 Protocol Buffers (apt get install protobuf compiler)和 Thrift . 您还必须在elephant bird的pom.xml中设置thrift的位置。
请参见:https://stackoverflow.com/a/12301954

kq0g1dla

kq0g1dla2#

使用Java7JDK修复java编译错误。

相关问题