Building Apache Pig for Hadoop 2.4 version

不想你离开。 提交于 2020-01-11 07:19:28

问题


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 !


回答1:


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.



来源:https://stackoverflow.com/questions/26291415/building-apache-pig-for-hadoop-2-4-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!