Hi,

we are trying to use the latest Pig-Version 0.14 with our Hadoop 2.0.0 
installation.
We are using: 2.0.0-cdh4.7.0.jar

This version seems not to be compatible with Pig 0.14.

Even this minimal script:

D = load 'test.txt';
dump D;

and test.txt an empty file, fails with the error:

2015-02-05 12:57:51,133 [main] WARN  org.apache.hadoop.conf.Configuration - 
dfs.safemode.extension is deprecated. Instead, use 
dfs.namenode.safemode.extension
Pig Stack Trace
---------------
ERROR 2998: Unhandled internal error. 
org.apache.hadoop.mapred.jobcontrol.JobControl.addJob(Lorg/apache/hadoop/mapred/jobcontrol/Job;)Ljava/lang/String;

java.lang.NoSuchMethodError: 
org.apache.hadoop.mapred.jobcontrol.JobControl.addJob(Lorg/apache/hadoop/mapred/jobcontrol/Job;)Ljava/lang/String;
        at 
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:325)
        at 
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:196)
        at 
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:280)
        at org.apache.pig.PigServer.launchPlan(PigServer.java:1390)
        at 
org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1375)
        at org.apache.pig.PigServer.storeEx(PigServer.java:1034)
        at org.apache.pig.PigServer.store(PigServer.java:997)
        at org.apache.pig.PigServer.openIterator(PigServer.java:910)
        at 
org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:746)
        at 
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:372)
        at 
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:230)
        at 
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)
        at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
        at org.apache.pig.Main.run(Main.java:624)
        at org.apache.pig.Main.main(Main.java:170)
        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:208)
================================================================================


The release notes promise compatibility with Hadoop 2.X. Is this a bug?
Is there a workaround?

Best regards and thanks for your help.
-- Michael





Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to