ElephantBird package build failure:

风流意气都作罢 提交于 2019-12-23 02:05:20

问题


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]

I am using mvn version 3.0.3 and I tried in the Mac and Ubuntu but I got the same error.

EDIT1:

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)

回答1:


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.

See: https://stackoverflow.com/a/12301954




回答2:


Use Java 7 JDK to fix the Java compilation error.



来源:https://stackoverflow.com/questions/13468811/elephantbird-package-build-failure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!