ElephantBird ERROR 1070: — > class not getting read

江枫思渺然 提交于 2019-12-25 08:28:17

问题


My problem is similar to this unanswered question :

[https://stackoverflow.com/questions/42140344/elephantbird-dependency-jars][1]

i have registered all jars mandatory for elephantbird to function.

REGISTER '/MyJARS/elephant-bird-hadoop-compat-4.1
REGISTER '/MyJARS/json-simple-1.1.jar';
REGISTER '/MyJARS/elephant-bird-pig-4.1.jar';
REGISTER '/MyJARS/elephant-bird-core-4.10.jar';
REGISTER '/MyJARS/google-collections-1.0.jar';

following links tell me these info : 1 : Loading data from HDFS does not work with Elephantbird

2 : how to load twitter data from hdfs using pig?

My current versions :
Hadoop: Hadoop 2.6.0-cdh5.7.3
Pig: Apache Pig version 0.12.0-cdh5.7.3 (rexported) 

I receive following error :

ERROR 1070: Could not resolve com.twitter.elephantbird.pig.load.JsonLoader using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]

Any help is appreciated , I tried almost all possible solutions across web.


回答1:


This was an versioning problem. After trying many jars from this link , it finally worked with elephant-bird-pig-4.14.jar

REGISTER '/MyJARS/elephant-bird-hadoop-compat-4.1
REGISTER '/MyJARS/json-simple-1.1.jar';
REGISTER '/MyJARS/elephant-bird-pig-4.14.jar';
REGISTER '/MyJARS/elephant-bird-core-4.10.jar';
REGISTER '/MyJARS/google-collections-1.0.jar';


来源:https://stackoverflow.com/questions/42369307/elephantbird-error-1070-class-not-getting-read

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