象鸟造成失败

时间:2013-08-05 04:32:40

标签: thrift elephantbird

因为我想使用Elephant bird在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中指定绝对路径

有关如何使其运行的任何建议。

1 个答案:

答案 0 :(得分: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提到了这个错误。