Hadoop eclipse mapreduce is not working?

无人久伴 提交于 2020-01-03 05:15:33

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/15195734/hadoop-eclipse-mapreduce-is-not-working

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