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
相关推荐
《GBA_REBUILD: 重铸GBA游戏开发的魅力与技术探索》 GBA_REBUILD 是一个关于Game Boy Advance(GBA)游戏开发的项目,它由一位未知名的大神创建,但经过改进和更新后,现在能够顺利运行。这个项目主要基于C++编程...
Android版Rebuild.fm Android的Rebuild.fm是收听Rebuild.fm的最佳播客播放器。 (非官方) 关于Rebuild.fm 的。 谈论技术,软件开发和小工具。 截屏 当前版本(0.10.0) 安装 建立在本地 $ git clone ...
3. **清理和重建**:在IDEA中,选择`Build` -> `Clean Project`,然后`Build` -> `Rebuild Project`,清理并重建项目,确保所有编译设置都已更新。 4. **检查模拟器设置**:确保使用的模拟器与你的APK兼容,包括...
3. **清理项目和重新构建**:在修改了`AndroidManifest.xml`之后,清理项目(`Build > Clean Project`)并重新构建(`Build > Rebuild Project`),这有助于清除任何可能的旧版本或缓存,确保新版本的代码被正确地...
### DELL服务器硬盘掉线后的REBUILD修复操作详解 在企业级服务器运维中,RAID技术作为数据冗余和性能提升的重要手段,被广泛应用。然而,在长时间运行或遇到突发状况时,服务器硬盘可能会出现故障,导致RAID阵列...
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...
" install " : " prebuild-install || node-gyp rebuild " } } 要求 您需要提供由进行的 。 帮助 prebuild-install [options] --download -d [url] (download prebuilds, no url means github) --target -t ...
SQL Server 修复工具 REPAIR_REBUILD SQL Server 是一个复杂的关系数据库管理系统,它提供了强大的数据存储和管理功能。但是,当 SQL Server 遇到 I/O 错误、磁盘问题或其他错误时,数据库可能会损坏,导致数据丢失...
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 ...
Clean Project :删除build目录下的所有文件,并对项目的大部分文件进行重新编译,时间相对于Rebuild Project短点; Rebuild Project :包含了Clean的操作,并对整个项目进行了重新编译(包括NDK和资源文件),因此...
Solar Board Rebuild on TI part4
标题“rebuild_db-1.0-rc1.zip”表明这是一个软件或工具的打包文件,版本为1.0的候选发布版1(RC1)。在IT行业中,RC1通常代表Release Candidate 1,这意味着该软件已经接近最终版本,但在正式发布前还需要进行最后...
W589_Rebuild_Tool.exe
里面有代码和数据集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)
高度可配置化的企业管理系统!可免费商用!...REBUILD 侧重于业务需求实现,而非基础技术框架或项目启动模板,通过 REBUILD 可以真正实现零代码快速搭建!无需编程、无需编译代码,甚至无需了解任何技术。
根据提供的信息,我们可以总结出以下关于“索引重建(Index Rebuild)”的相关知识点: ### 索引重建概述 **索引重建**是数据库管理中的一个重要操作,它涉及删除现有的索引并重新创建它。这个过程可以帮助优化...
DATE = SYSDATE WHERE KPI_ID = :B8 AND NE_ID = :B7 AND CONFIG_NE_ID = :B6 AND REGION_ID = :B5 AND (PERF_ORIGIN = :B4 OR PERF_ORIGIN = :B3)。 本文提供了新疆数据库性能诊断分析和解决方案,旨在提高系统...
使用--save-dev安装软件包: npm install --save-dev electron-rebuild 然后,每当您安装新的npm软件包时,请重新运行electron-rebuild: $( npm bin ) /electron-rebuild 或者,如果您使用的是Windows: ....