I am using hadoop 1.0 and sqoop 1.4 which is compatible with each other. When I am trying to import a table from MySQL to hdfs.
sqoop import --connect jdbc:mysql://localhost/mydemo --table wordcount -m 1 --username root --password root123
I am getting following error
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected ?
I have tried running sqoop 1.4 with hadoop 1.0 and 2.0 still getting same error. I have tried sqoop 1.99 with hadoop 2.0 also. So please suggest some different suggestions other than compatibility.
Sqoop and Sqoop2 have binary distributions that differ based on Hadoop version. This kind of error can be seen in Sqoop2 if it is compiled with the wrong version of Hadoop or if the wrong hadoop libraries are on your system. Things to try to fix this:
find / -name 'hadoop*.jar'should work.<server configuration directory>/catalina.properties. Jars can be explicitly added tocommon.loader.