Elephant-bird mvn package error

匆匆过客 提交于 2019-12-05 11:01:58

Changed Thrift from 0.9.1 to 0.7.0 by downloading from http://archive.apache.org/dist/thrift/0.7.0/thrift-0.7.0.tar.gz. Extract and go into the extracted folder. Then typed following commands :

  • chmod +x ./configure
  • ./configure
  • make
  • sudo make install

Check thrift version by typing thrift -version. This should return "Thrift version 0.7.0"

Then go to elephant-bird folder and type "mvn -Dmaven.test.skip=true package"

Note : skip test is used as some tests were failing. Skip test options solved the issue.

Console output :

[INFO] Building jar: /usr/lib/hadoop/elephant_bird/examples/target/elephant-bird-examples-4.4-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Elephant Bird ..................................... SUCCESS [2.043s]
[INFO] Elephant Bird Cascading2 .......................... SUCCESS [4.277s]
[INFO] Elephant Bird Core ................................ SUCCESS [16.622s]
[INFO] Elephant Bird Hadoop Compatibility ................ SUCCESS [0.106s]
[INFO] Elephant Bird Hive ................................ SUCCESS [0.462s]
[INFO] Elephant Bird Mahout .............................. SUCCESS [5.026s]
[INFO] Elephant Bird Pig ................................. SUCCESS [9.756s]
[INFO] Elephant Bird RCFile .............................. SUCCESS [3.745s]
[INFO] Elephant Bird Lucene .............................. SUCCESS [3.320s]
[INFO] Elephant Bird Pig Lucene .......................... SUCCESS [1.736s]
[INFO] Elephant Bird Examples ............................ SUCCESS [6.653s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.204s
[INFO] Finished at: Wed Jan 15 01:28:31 IST 2014
[INFO] Final Memory: 64M/386M
[INFO] ------------------------------------------------------------------------

EDIT : Pig was throwing error while compiling load statement for JsonLoader as json-simple-1.1.1.jar was not found. Google for the jar, you can find it easily. ( Cannot post link due to less than 10 reputation)

and there was an error thrown while launching pig job regarding hadoop-compat. Download http://repo1.maven.org/maven2/com/twitter/elephantbird/elephant-bird-hadoop-compat/4.4/elephant-bird-hadoop-compat-4.4.jar (Also found in < elephant-bird-folder-path >/hadoop-compat/target/elephant-bird-hadoop-compat-4.4-SNAPSHOT.jar

)

register 4 Jars to use Elephant-Bird plugin in Pig.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!