我的问题类似于这个未回答的问题:
[https://stackoverflow.com/questions/42140344/elephantbird-dependency-jars][1]
我已经注册了大象鸟必须使用的所有 jar 。
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
My current versions :
Hadoop: Hadoop 2.6.0-cdh5.7.3
Pig: Apache Pig version 0.12.0-cdh5.7.3 (rexported)
我收到以下错误:
ERROR 1070: Could not resolve com.twitter.elephantbird.pig.load.JsonLoader using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
任何帮助表示赞赏,我尝试了几乎所有可能的网络解决方案。
最佳答案
这是一个版本控制问题。在尝试了 this 的许多 jar 后链接,它终于与大象鸟 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';
关于json - 象鸟错误 1070 : ---> class not getting read,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42369307/