JsonMappingException on a Hadoop program with Eclipse -


seeing jsonmappingexception on simple hadoop program when running in eclipse(kepler) cloudera quickstart vm

exception in thread "main" java.lang.noclassdeffounderror: org/codehaus/jackson/map/jsonmappingexception     @ org.apache.hadoop.mapreduce.job$1.run(job.java:595)     @ java.security.accesscontroller.doprivileged(native method)     @ javax.security.auth.subject.doas(subject.java:415)     @ org.apache.hadoop.security.usergroupinformation.doas(usergroupinformation.java:1693)     @ org.apache.hadoop.mapreduce.job.connect(job.java:593)     @ org.apache.hadoop.mapreduce.job.submit(job.java:581)     @ org.apache.hadoop.mapreduce.job.waitforcompletion(job.java:612)     @ maxtemperature.main(maxtemperature.java:28) caused by: java.lang.classnotfoundexception: org.codehaus.jackson.map.jsonmappingexception     @ java.net.urlclassloader$1.run(urlclassloader.java:366)     @ java.net.urlclassloader$1.run(urlclassloader.java:355)     @ java.security.accesscontroller.doprivileged(native method)     @ java.net.urlclassloader.findclass(urlclassloader.java:354)     @ java.lang.classloader.loadclass(classloader.java:425)     @ sun.misc.launcher$appclassloader.loadclass(launcher.java:308)     @ java.lang.classloader.loadclass(classloader.java:358)     ... 8 more 

as suggested many, tried adding jackson jars quickstart vm no success.

after spending couple of hours debugging, found solution adding below jars:

http://mvnrepository.com/artifact/org.codehaus.jackson/jackson-mapper-asl/1.9.13 http://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl/1.9.13 

hope save sometime starters may face similar issue on running hadoop programs(using eclipse) on cloudera quickstart vm.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -