我下载了 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 中尝试过,但我得到了同样的错误。
编辑1:
感谢 Lorand 的评论,我通过升级协议缓冲区解决了上述问题。我还安装了 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)