From the error that you are getting it seems you have included the wrong jars to your program.
IncompatibleClassChangeError occurs due to incompatibility in different versions.
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class org.apache.hadoop.mapreduce.JobContext, but interface was expected
Above error shows you have incompatibility issue in your program.
Please note if you are not happy with the response on this ticket, please escalate it to escalations@edureka.in.
We assure you that we will get back to you within 24 hours
Regards,
Abhishek Tiwari
edureka! Support Team
On Fri, 1 Apr at 9:37 PM , Big Data and Hadoop at Edureka <hadoop@edureka.co> wrote:Dear Learner,Hope you are doing well.We havereceived your query and we are going through it. Please give us some time and we will reach you with the solution at the earliest.Thanks for your time and patience. Please let us know if you have any further queries.Please note if you are not happy with the response on this ticket, please escalate it to escalations@edureka.in.We assure you that we will get back to you within 24 hoursRegards,Abhishek Tiwari
edureka! Support TeamOn Fri, 1 Apr at 7:51 AM , sashikumar <shashi.fengshui@gmail.com> wrote:sorry this was a wrong ping
On Fri, Apr 1, 2016 at 7:44 AM, shashi kumar <shashi.fengshui@gmail.com> wrote:
Dear Team,I have tried the same and ended up with the below error :Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class org.apache.hadoop.mapreduce.JobContext, but interface was expectedat com.mongodb.hadoop.MongoOutputFormat.checkOutputSpecs(MongoOutputFormat.java:32)at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:770)at org.apache.hadoop.mapreduce.Job.submit(Job.java:432)at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447)at tvl.bd.mongo1.MongoDriver1.run(MongoDriver1.java:36)at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)at tvl.bd.mongo1.MongoDriver1.main(MongoDriver1.java:42)Have attached the code .Please help in fixing this issueRegards,SashiOn Thu, Mar 31, 2016 at 9:35 PM, shashi kumar <shashi.fengshui@gmail.com> wrote:Team,Do I have any update on this.Regards,SashiOn Wed, Mar 30, 2016 at 10:23 PM, shashi kumar <shashi.fengshui@gmail.com> wrote:I dont see any differenceOn Wed, Mar 30, 2016 at 10:16 PM, Big Data and Hadoop at Edureka <hadoop@edureka.co> wrote:Dear Learner,Hope you are doing well.Instead of using job.setNumReduceTasks(4) please use below property in you driver classjob.setNumReduceTasks(4);Hope it resolves your issue.If you have any further query,please let us know.Please note if you are not happy with the response on this ticket, please escalate it to escalations@edureka.in.We assure you that we will get back to you within 24 hoursRegards,Abhishek Tiwari
edureka! Support TeamOn Wed, 30 Mar at 10:01 PM , sashikumar <shashi.fengshui@gmail.com> wrote:Team,Find the attachment of my code