构建Hadoop 2.4版本的Apache Pig [英] Building Apache Pig for Hadoop 2.4 version

查看:157
本文介绍了构建Hadoop 2.4版本的Apache Pig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了PIG 0.14,并且做了一个 ant -dhadoopversion = 23 jar ,但是当我在Hadoop 2.4上使用它时,它不起作用。除了运行蚂蚁之外,还有什么我应该做的吗?



Pig正在运行,但显示错误

ang.IncompatibleClassChangeError:找到的接口org.apache.hadoop.mapreduce .JobContext,但预计会有类



谢谢!

解决方案

你从SVN中检出了Pig,你可以在
$ PIG_HOME / ivy / libraries.properties 中验证它使用的Hadoop版本。对于23配置文件,它是 2.4.0
从源代码构建Pig之后( ant -Dhadoopversion = 23 ),您可以验证ivy是否检索到 $下的正确Hadoop罐子PIG_HOME / build / ivy / lib / Pig



我怀疑在 PIG_CLASSPATH 中有错误的Hadoop版本。


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 !

解决方案

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.

这篇关于构建Hadoop 2.4版本的Apache Pig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆