象鸟错误 1070: --- >课没有读 [英] ElephantBird ERROR 1070: --- > class not getting read

查看:27
本文介绍了象鸟错误 1070: --- >课没有读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

<块引用>

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

我已经注册了大象鸟运行所必需的所有罐子.

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

<块引用>

以下链接告诉我这些信息:1:从 HDFS 加载数据不适用于 Elephantbird

2:如何使用 pig 从 hdfs 加载 Twitter 数据?

我当前的版本:Hadoop:Hadoop 2.6.0-cdh5.7.3Pig:Apache Pig 版本 0.12.0-cdh5.7.3(重新导出)

我收到以下错误:

<块引用>

错误 1070:无法解析com.twitter.elephantbird.pig.load.JsonLoader 使用导入:[,java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]

感谢任何帮助,我尝试了几乎所有可能的网络解决方案.

解决方案

这是一个版本控制问题.在尝试了 this 链接中的许多 jar 之后,它终于与大象-鸟-猪-4.14.jar

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

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.

解决方案

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';

这篇关于象鸟错误 1070: --- &gt;课没有读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆