1

因为我想用象鸟在 PIG 中读/写 JSON 文件,所以下载了 EB for Mac

git clone git://github.com/kevinweil/elephant-bird.git

并尝试使用

mvn package

并且构建失败如下,

[INFO] --- protobuf-maven-plugin:0.4:run (default) @ elephant-bird-core ---
[INFO] Protobuf dependency version 2.4.1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Elephant Bird ..................................... SUCCESS [1.670s]
[INFO] Elephant Bird Hadoop Compatibility ................ SUCCESS [3.148s]
[INFO] Elephant Bird Core ................................ FAILURE [0.927s]
[INFO] Elephant Bird Cascading2 .......................... SKIPPED
[INFO] Elephant Bird Hive ................................ SKIPPED
[INFO] Elephant Bird Pig ................................. SKIPPED
[INFO] Elephant Bird Mahout .............................. SKIPPED
[INFO] Elephant Bird RCFile .............................. SKIPPED
[INFO] Elephant Bird Lucene .............................. SKIPPED
[INFO] Elephant Bird Pig Lucene .......................... SKIPPED
[INFO] Elephant Bird Examples ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[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]

我已经检查了这个链接ElephantBird package build failure:并下载了 thrift 0.9 并尝试在 pom.xml 中指定绝对路径

请就如何运行它提出任何建议。

4

1 回答 1

1

如果您使用的是基于 apt-get 的系统,请尝试安装该libprotobuf-java软件包。您还可以从源http://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.4.1.tar.gz安装 2.4.1 版。

https://github.com/kevinweil/elephant-bird/wiki/Build-errors提到了这个错误。

于 2013-09-20T08:00:15.000 回答