You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Jerry Lam <ch...@gmail.com> on 2014/07/07 22:56:59 UTC

Building Pig 0.13 with cdh4.1.3

Hi guys,

I have difficulties to build Pig 0.13 with cdh4.1.3.
I used the following command to build:
ant clean jar-withouthadoop -Dhadoopversion=23

The build was successful but when I ran the pig script, it threw the
following exception:

Caused by: java.lang.NoSuchMethodError:
org.apache.hadoop.mapreduce.Job.getTaskReports(Lorg/apache/hadoop/mapreduce/TaskType;)[Lorg/apache/hadoop/mapreduce/TaskReport;
        at
org.apache.pig.backend.hadoop.executionengine.shims.HadoopShims.getTaskReports(HadoopShims.java:218)
        at
org.apache.pig.tools.pigstats.mapreduce.MRJobStats.addMapReduceStatistics(MRJobStats.java:353)
        at
org.apache.pig.tools.pigstats.mapreduce.MRPigStatsUtil.addSuccessJobStats(MRPigStatsUtil.java:233)
        at
org.apache.pig.tools.pigstats.mapreduce.MRPigStatsUtil.accumulateStats(MRPigStatsUtil.java:165)
        at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:364)
        at
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:277)
        at org.apache.pig.PigServer.launchPlan(PigServer.java:1367)
        at
org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1352)
        at org.apache.pig.PigServer.execute(PigServer.java:1341)
        at org.apache.pig.PigServer.executeBatch(PigServer.java:392)
        at org.apache.pig.PigServer.executeBatch(PigServer.java:375)
        at org.apache.pig.scripting.BoundScript.exec(BoundScript.java:282)
        at
org.apache.pig.scripting.BoundScript.runSingle(BoundScript.java:101)
        at
org.apache.pig.scripting.BoundScript.runSingle(BoundScript.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)

Any help is appreciated!

Jerry