我下载了ElephantBird源码,并试图通过运行"mvn package“来构建,但我得到了以下错误:
[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上试过了,但我得到了同样的错误。
EDIT1:
多亏了Lorand的评论,我通过升级protocol buffer解决了上面的问题。我也安装了Thrift 0.7.0,但现在在构建大象-猪的过程中,我遇到了另一个编译失败:
[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)发布于 2012-11-20 17:10:07
确保您之前已经安装了编译器(apt-get install protobuf- Protocol Buffers )和Thrift。您还必须在Elephant-bird的pom.xml中设置Thrift的位置。
发布于 2013-05-22 02:05:54
使用Java 7 JDK修复Java编译错误。
https://stackoverflow.com/questions/13468811
复制相似问题