gpt4 book ai didi

json - 象鸟错误 1070 : ---> class not getting read

转载 作者:行者123 更新时间:2023-12-02 21:04:27 24 4
gpt4 key购买 nike

我的问题类似于这个未回答的问题:

[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

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)

我收到以下错误:

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com