ElephantBird软件包构建失败: [英] ElephantBird package build failure:
问题描述
我下载了ElephantBird源文件,并尝试通过运行"mvn软件包"进行构建,但出现以下错误:
I downloaded ElephantBird source and tried to build by running "mvn package" but I am getting the following error:
[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]
我正在使用mvn版本3.0.3,并且在Mac和Ubuntu中进行了尝试,但出现了相同的错误.
I am using mvn version 3.0.3 and I tried in the Mac and Ubuntu but I got the same error.
由于Lorand的评论,我通过升级协议缓冲区解决了上述问题.我还安装了Thrift 0.7.0,但现在在大象猪构建过程中又遇到了另一个编译失败:
Thanks to Lorand's comments, I resolved the above problem by upgrading the protocol buffer. I also installed Thrift 0.7.0 but now I am having another compilation failure during elephant-pig build:
[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)
推荐答案
请确保您先前已安装Protocol Buffers
(易于安装protobuf-compiler)和Thrift
.您还必须在大象鸟的pom.xml中设置Thrift的位置.
Make sure that you have previously installed Protocol Buffers
(apt-get install protobuf-compiler) and Thrift
. You also have to set Thrift's location in Elephant-bird's pom.xml.
请参阅: https://stackoverflow.com/a/12301954
这篇关于ElephantBird软件包构建失败:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!