Robert Kanter created OOZIE-1848:
------------------------------------

             Summary: Pig actions fail due to missing joda-time jar from pig 
sharelib
                 Key: OOZIE-1848
                 URL: https://issues.apache.org/jira/browse/OOZIE-1848
             Project: Oozie
          Issue Type: Bug
    Affects Versions: trunk
            Reporter: Robert Kanter
            Priority: Blocker


When I try to run the pig example, I get this Exception in the launcher log:
{noformat}
java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant
        at 
org.apache.pig.newplan.logical.relational.LogicalSchema$LogicalFieldSchema.merge(LogicalSchema.java:404)
        at 
org.apache.pig.newplan.logical.relational.LogicalSchema.merge(LogicalSchema.java:768)
        at 
org.apache.pig.newplan.logical.relational.LOGenerate.getSchema(LOGenerate.java:158)
        at 
org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:123)
        at 
org.apache.pig.newplan.logical.relational.LOGenerate.accept(LOGenerate.java:245)
        at 
org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
        at 
org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:114)
        at 
org.apache.pig.parser.LogicalPlanBuilder.buildForeachOp(LogicalPlanBuilder.java:1015)
        at 
org.apache.pig.parser.LogicalPlanGenerator.foreach_clause(LogicalPlanGenerator.java:15870)
        at 
org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1933)
        at 
org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:1102)
        at 
org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:560)
        at 
org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:421)
        at 
org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:188)
        at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1678)
        at org.apache.pig.PigServer$Graph.access$000(PigServer.java:1411)
        at org.apache.pig.PigServer.parseAndBuild(PigServer.java:344)
        at org.apache.pig.PigServer.executeBatch(PigServer.java:369)
        at org.apache.pig.PigServer.executeBatch(PigServer.java:355)
        at 
org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:140)
        at 
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:202)
        at 
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:173)
        at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:84)
        at org.apache.pig.Main.run(Main.java:478)
        at org.apache.pig.PigRunner.run(PigRunner.java:49)
        at org.apache.oozie.action.hadoop.PigMain.runPigJob(PigMain.java:288)
        at org.apache.oozie.action.hadoop.PigMain.run(PigMain.java:228)
        at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:39)
        at org.apache.oozie.action.hadoop.PigMain.main(PigMain.java:77)
        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.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:226)
        at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
        at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:366)
        at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
        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:1190)
        at org.apache.hadoop.mapred.Child.main(Child.java:249)
Caused by: java.lang.ClassNotFoundException: org.joda.time.ReadableInstant
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 42 more
{noformat}

It looks like we need to add the {{joda-time}} jar to the Pig sharelib



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to