1

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もインストールしましたが、elephant-pigのビルド中に別のコンパイルエラーが発生します。

[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)
4

2 に答える 2

2

(apt-get install protobuf Protocol Buffers-compiler) とThrift. また、Elephant-bird の pom.xml で Thrift の場所を設定する必要があります。

参照: https://stackoverflow.com/a/12301954

于 2012-11-20T09:10:06.583 に答える
0

Use Java 7 JDK to fix the Java compilation error.

于 2013-05-21T18:05:53.730 に答える