Grokbase Groups Pig user July 2011
FAQ
Hi,
I tried including the udfs in my pig script by adding them to the classpath as well as registered them but still its is showing NoClassDefFoundError


pig -x local -classpath /homes/jayeshb/ccm_gridlib-1.0.jar:/homes/jayeshb/ccm_lib-1.0.jar:/homes/jayeshb/zebra.jar
USING: /grid/0/gs/pig/current
2011-07-25 07:19:40,971 [main] INFO org.apache.pig.Main - Logging error messages to: /homes/jayeshb/pig_1311578380966.log
2011-07-25 07:19:41,153 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: file:///<file:////>
grunt> register /homes/jayeshb/zebra.jar
grunt> register /homes/jayeshb/ccm_lib-1.0.jar
grunt> register /homes/jayeshb/ccm_gridlib-1.0.jar
grunt> A = load 'ffaa391a-b730-44e2-ab32-b835a82b743c' USING com.yahoo.ccm.grid.pig.zebra.CCMPigZebraLoader();
2011-07-25 07:20:35,250 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2998: Unhandled internal error. org/apache/pig/Slicer
Details at logfile: /homes/jayeshb/pig_1311578380966.log

LogFile>>>>
ERROR 2998: Unhandled internal error. org/apache/pig/Slicer

java.lang.NoClassDefFoundError: org/apache/pig/Slicer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)

Search Discussions

  • Dmitriy Ryaboy at Jul 25, 2011 at 4:33 pm
    Slicers went away in Pig 0.7. Your jars seem to be written for an ancient
    version of Pig.

    D
    On Mon, Jul 25, 2011 at 2:16 AM, Jayesh Bharadwaj wrote:

    Hi,
    I tried including the udfs in my pig script by adding them to the classpath
    as well as registered them but still its is showing NoClassDefFoundError


    pig -x local -classpath
    /homes/jayeshb/ccm_gridlib-1.0.jar:/homes/jayeshb/ccm_lib-1.0.jar:/homes/jayeshb/zebra.jar
    USING: /grid/0/gs/pig/current
    2011-07-25 07:19:40,971 [main] INFO org.apache.pig.Main - Logging error
    messages to: /homes/jayeshb/pig_1311578380966.log
    2011-07-25 07:19:41,153 [main] INFO
    org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting
    to hadoop file system at: file:///<file:////>
    grunt> register /homes/jayeshb/zebra.jar
    grunt> register /homes/jayeshb/ccm_lib-1.0.jar
    grunt> register /homes/jayeshb/ccm_gridlib-1.0.jar
    grunt> A = load 'ffaa391a-b730-44e2-ab32-b835a82b743c' USING
    com.yahoo.ccm.grid.pig.zebra.CCMPigZebraLoader();
    2011-07-25 07:20:35,250 [main] ERROR org.apache.pig.tools.grunt.Grunt -
    ERROR 2998: Unhandled internal error. org/apache/pig/Slicer
    Details at logfile: /homes/jayeshb/pig_1311578380966.log

    LogFile>>>>
    ERROR 2998: Unhandled internal error. org/apache/pig/Slicer

    java.lang.NoClassDefFoundError: org/apache/pig/Slicer
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.forName0(Native Method)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedJul 25, '11 at 9:19a
activeJul 25, '11 at 4:33p
posts2
users2
websitepig.apache.org

People

Translate

site design / logo © 2021 Grokbase