Exception in thread “main” java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected

Issue:

While configuring Sqoop (Sqoop: Downloaded was 1.4.6) on HDFS (Hadoop: 2.7.2), I encountered the below error,

Exception in thread “main” java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected        at org.apache.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHelper.java:65)        at com.cloudera.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHelper.java:36)        at org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat.getSplits(DataDrivenDBInputFormat.java:125)

Cause:

Could be something to do with versions conflict between Sqoop and Hadoop

Resolution:

The version of Sqoop (1.4.6) that was downloaded was for Hadoop 1, so, you may have to pick the right version of Sqoop + Hadoop combination to overcome the issue.Below is the snapshot for your reference.

 

sqhd

 

Advertisements
This entry was posted in Hadoop, Sqoop. Bookmark the permalink.

One Response to Exception in thread “main” java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected

  1. @mohammadarifmustafa@gmail.com, thanks man, you save my day….

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s