ENV: Hadoop2.3.0 pig0.12
Hadoop is runnig and pig grunt works well.
but when load data and dump it to screen
#actor = load '/test/actor' using PigStorage(',') as (id, name, addr, time);
#dump actor;
the error is :
ackend error message during job submission
-------------------------------------------
Unexpected System Error Occured: java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but cl
ass was expected
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat.setupUdfEnvAndStores(PigOutputFormat.java:225)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat.checkOutputSpecs(PigOutputFormat.java:186)
at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:458)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:343)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1282)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282)
at org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.submit(ControlledJob.java:335)
at org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.run(JobControl.java:240)
at org.apache.pig.backend.hadoop20.PigJobControl.run(PigJobControl.java:121)
at java.lang.Thread.run(Thread.java:744)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher$1.run(MapReduceLauncher.java:270)
Pig Stack Trace
---------------
ERROR 1066: Unable to open iterator for alias actor
org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator for alias actor
at org.apache.pig.PigServer.openIterator(PigServer.java:880)
at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:774)
at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:372)
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:198)
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:173)
at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69)
at org.apache.pig.Main.run(Main.java:541)
at org.apache.pig.Main.main(Main.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Caused by: java.io.IOException: Job terminated with anomalous status FAILED
at org.apache.pig.PigServer.openIterator(PigServer.java:872)
... 12 more
cause: version imcomparable
http://stackoverflow.com/questions/21300612/error-in-pig-while-loading-data
http://blog.csdn.net/u011569805/article/details/17174131
solution: recompile
(1) cd /${PIG_HOME}
(2) mv pig-0.10.1-withouthadoop.jar pig-0.10.1-withouthadoop.jar.bak
(3) mv pig-0.10.1.jar pig-0.10.1.jar.bak
(4) ant clean jar-withouthadoop -Dhadoopversion=23
编译完成后将在${PIG_HOME}/build目录下生成:
pig-0.12.0-SNAPSHOT-core.jar, pig-0.12.0-SNAPSHOT-withouthadoop.jar
(5) 将上一步生成的两个文件Copy至${PIG_HOME}下,并进行改名:
pig-0.12.0-SNAPSHOT-core.jar --> pig-0.12.0.jar
pig-0.12.0-SNAPSHOT-withouthadoop.jar --> pig-0.12.0-withouthadoop.jar
Note: the best source to learn pig is the book 'Programming Pig'. Download the sample code and data
by following steps:
1.install git by #sudo apt-get install git
2.clone project form git by #git clone https://github.com/alanfgates/programmingpig.git /path/to/destinationdir
相关推荐
Android版Rebuild.fm Android的Rebuild.fm是收听Rebuild.fm的最佳播客播放器。 (非官方) 关于Rebuild.fm 的。 谈论技术,软件开发和小工具。 截屏 当前版本(0.10.0) 安装 建立在本地 $ git clone ...
GBA_REBUILDGBA_REBUILD我忘记了在哪个大神那里下载的了,但是要感谢他,但是他的项目里面的东西很久了所以跑不了,我就更换了里面的东西才能跑起来
gem specific_install -l " git@github.com:jacoyutorius/rebuild.git " 用法 $ rebuild Commands: rebuild clearmp3 # clear downloaded mp3 rebuild episodes # list of shows rebuild fetch # get new episode...
D:\opencv_rebuild\msvc2012_86\include D:\opencv_rebuild\msvc2012_86\include\opencv D:\opencv_rebuild\msvc2012_86\include\opencv2 库目录: D:\opencv_rebuild\msvc2012_86\x86\vc11\lib 附加依赖库: opencv...
D:\opencv_rebuild\msvc2012_86\include D:\opencv_rebuild\msvc2012_86\include\opencv D:\opencv_rebuild\msvc2012_86\include\opencv2 库目录: D:\opencv_rebuild\msvc2012_86\x86\vc11\lib 附加依赖库: opencv...
Warning: mysql_connect(): Headers and client library minor version mismatch. Headers:XXXX Library:XXXX 指示 在您的命令行中: 安装要求 sudo apt-get install build-essential sudo apt-get build-dep ...
index rebuild
Solar Board Rebuild on TI part4
里面有代码和数据集I = imread('coins.png');...% Example II : how to rebuild the boundary image from the boundary coordinates vectorbound_img2 = zeros(size(I));for k = 1:numel(bound_coord)
DELL_服务器硬盘掉线后的REBUILD修复操作全过程
SQL置疑REPAIR_REBUILD修复
" install " : " prebuild-install || node-gyp rebuild " } } 要求 您需要提供由进行的 。 帮助 prebuild-install [options] --download -d [url] (download prebuilds, no url means github) --target -t ...
Hi all, I had to rebuild my box and I currently am unable to install Watir. gem install watir ERROR: Error installing watir: activesupport requires Ruby version >= 1.8.7. Which would be fine if ...
:package: npm install :hammer: npm run rebuild :backhand_index_pointing_right: npm start :sparkles: :memo: :rocket:! 这将安装成功构建Txt所需的一切! :party_popper: 免责声明 :prohibited: 这是一项巨大...
# rebuild any PRs and main branch changes pull_request : push : branches : - mastername : bloatjobs : cargo_bloat : runs-on : ubuntu-latest steps : - uses : actions/checkout@master - name : Install ...
使用--save-dev安装软件包: npm install --save-dev electron-rebuild 然后,每当您安装新的npm软件包时,请重新运行electron-rebuild: $( npm bin ) /electron-rebuild 或者,如果您使用的是Windows: ....
$ heroku plugins:install heroku-repo $ heroku repo:purge_cache -a APPNAME 请务必将APPNAME替换为您的应用名称。 现在,增加您的仓库。 构建完成后,将重新构建并缓存您的依赖项。 现在,取消设置变量... $ ...
高度可配置化的企业管理系统!可免费商用!...REBUILD 侧重于业务需求实现,而非基础技术框架或项目启动模板,通过 REBUILD 可以真正实现零代码快速搭建!无需编程、无需编译代码,甚至无需了解任何技术。
RTU_scripts 游戏 Rebuild The Universe 的附加脚本用法:目前您必须将 rtu_scripts.js 内容复制并粘贴到您的控制台中,然后发出: init(false) 仅用于添加到单元面板的附加购买信息init(true) 同上,加上可以访问...
向 nova-api 发送请求客户(可以是 OpenStack 最终用户,也可以是其他程序)向 API(nova-api)发送请求:“Rebuild 这个 In