I downloaded ElephantBird source and tried to build by running "mvn package" but I am getting the following error:
[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]
I am using mvn version 3.0.3 and I tried in the Mac and Ubuntu but I got the same error.
EDIT1:
Thanks to Lorand's comments, I resolved the above problem by upgrading the protocol buffer. I also installed Thrift 0.7.0 but now I am having another compilation failure during elephant-pig build:
[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)
Use Java 7 JDK to fix the Java compilation error.
Make sure that you have previously installed
Protocol Buffers
(apt-get install protobuf-compiler) andThrift
. You also have to set Thrift's location in Elephant-bird's pom.xml.See: https://stackoverflow.com/a/12301954