Reputation: 435
I downloaded PIG 0.14 and did an ant -dhadoopversion=23 jar , but when I used it on Hadoop 2.4 its not working. Is there anything I should do other than just running ant?
Pig is running, but showing errors
ang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected
thanks !
Upvotes: 1
Views: 1445
Reputation: 10650
If you checked out Pig from SVN trunk you can verify the Hadoop version it uses at
$PIG_HOME/ivy/libraries.properties
. For the "23" profile it is 2.4.0
.
After you have built Pig from source ( ant -Dhadoopversion=23
) you can verify whether ivy has retrieved the correct Hadoop jars under $PIG_HOME/build/ivy/lib/Pig
.
I suspect that you have a wrong Hadoop version in your PIG_CLASSPATH
.
Upvotes: 1