Hadoop eclipse mapreduce不工作? [英] Hadoop eclipse mapreduce is not working?
问题描述
我刚刚将 hadoop-eclipse-plugin-1.0.3.jar
复制到eclipse / plugins目录中,以使事情发生。但不幸的是,这并不适合我。当我尝试连接eclipse到我的Hadoop版本1.1.1 集群时,它抛出了这个错误:
在地图/减少位置状态更新程序期间发生内部错误。 org / codehaus / jackson / map / JsonMappingException
有什么选项可以解决这个问题吗?
只需按照以下步骤:
<转到您的
HADOOP_HOME / contrib
文件夹。将 hadoop-eclipse-plugin - *。jar
复制到某处并解压。这将给出一个名为的文件夹hadoop-eclipse-plugin - *
2-现在,添加以下5个jar你的HADOOP_HOME / lib文件夹到hadoop-eclipse-plugin - * / lib文件夹,你刚才提取了插件之后就已经有了:
commons-configuration-1.6.jar
commons-httpclient-3.0.1.jar
commons-lang-2.4.jar
jackson-core-asl-1.0.1.jar
jackson-mapper-asl-1.0.1.jar
3-现在,修改 hadoop-eclipse-plugin - * / META-INF / MANIFEST.MF
文件,并将Bundle-ClassPath更改为:
Bundle-ClassPath:classes /,
lib / hadoop-core.jar,
lib / commons-cli-1.2.jar,
lib / commons- httpclient-3.0.1.jar,
lib / jackson-core-asl-1.0.1.jar,
lib / jackson-mapper-asl-1.0.1.jar,
lib / commons-configuration-1.6.jar,
lib / commons-lang-2.4.jar
4-现在,重新'包'并将这个新的jar放在eclipse / plugin里面ctory并重启日食。
,并检查此链接。
I just have copied hadoop-eclipse-plugin-1.0.3.jar
to the eclipse/plugins directory in order to get things going. But unfortunately it did not work for me. When I tried to connect eclipse to my Hadoop Version 1.1.1 cluster it threw this error :
An internal error occurred during: "Map/Reduce location status updater". org/codehaus/jackson/map/JsonMappingException
Is there any option to fix this?
Just follow these steps :
1- Go to your HADOOP_HOME/contrib
folder. Copy the hadoop-eclipse-plugin-*.jar
somewhere and extract it. This will give a folder named hadoop-eclipse-plugin-*
2- Now, add following 5 jars from your HADOOP_HOME/lib folder to the hadoop-eclipse-plugin-*/lib folder, you have got just now after extracting the plugin :
commons-configuration-1.6.jar
commons-httpclient-3.0.1.jar
commons-lang-2.4.jar
jackson-core-asl-1.0.1.jar
jackson-mapper-asl-1.0.1.jar
3- Now, modify the hadoop-eclipse-plugin-*/META-INF/MANIFEST.MF
file and change the Bundle-ClassPath to :
Bundle-ClassPath: classes /,
lib / hadoop-core.jar,
lib/commons-cli-1.2.jar,
lib/commons-httpclient-3.0.1.jar,
lib/jackson-core-asl-1.0.1.jar ,
lib/jackson-mapper-asl-1.0.1.jar,
lib/commons-configuration-1.6.jar,
lib/commons-lang-2.4.jar
4- Now, re 'jar' the package and place this new jar inside eclipse/plugin directory and restart the eclipse.
and also check this link.
这篇关于Hadoop eclipse mapreduce不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!