ElephantBird package build failure:

2019-06-03 00:48发布

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)

2条回答
聊天终结者
2楼-- · 2019-06-03 01:19

Use Java 7 JDK to fix the Java compilation error.

查看更多
爷的心禁止访问
3楼-- · 2019-06-03 01:38

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

查看更多
登录 后发表回答