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 hours 


Regards,
Abhishek Tiwari
edureka! Support Team
On 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 expected
at 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 issue

Regards,
Sashi

On Thu, Mar 31, 2016 at 9:35 PM, shashi kumar <shashi.fengshui@gmail.com> wrote:
Team,

Do I have any update on this.

Regards,
Sashi

On Wed, Mar 30, 2016 at 10:23 PM, shashi kumar <shashi.fengshui@gmail.com> wrote:
I dont see any difference

On 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 class
job.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 hours 


Regards,
Abhishek Tiwari
edureka! Support Team
On Wed, 30 Mar at 10:01 PM , sashikumar <shashi.fengshui@gmail.com> wrote:
Team,

Find the attachment of my code
Please let us know your opinion on our support experience.

HappyAwesome NeutralJust Okay UnhappyNot Good




Please let us know your opinion on our support experience.


HappyAwesome NeutralJust Okay UnhappyNot Good
182107