java.lang.NoClassDefFoundError: org/apache/pig/Main

oozie-user | shouvanik.haldar@accenture.com | 3 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Getting weird PIG error

    oozie-user | 3 years ago | shouvanik.haldar@accenture.com
    java.lang.NoClassDefFoundError: org/apache/pig/Main
  2. 0

    Getting weird PIG error

    oozie-user | 3 years ago | shouvanik.haldar@accenture.com
    java.lang.NoClassDefFoundError: org/apache/pig/Main
  3. 0

    Oozie error when trying to run Pig job workflow

    Stack Overflow | 3 years ago | gardella
    java.lang.NoClassDefFoundError: org/apache/pig/Main
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
  6. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

  1. batwalrus76 1 times, last 3 weeks ago
  2. osvzs 16 times, last 3 weeks ago
  3. stigkj 1 times, last 3 weeks ago
  4. Axelo 1 times, last 3 weeks ago
  5. odd 1 times, last 3 weeks ago
75 more registered users
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.pig.Main

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    7 frames
  3. org.apache.oozie
    PigMain.main
    1. org.apache.oozie.action.hadoop.PigMain.runPigJob(PigMain.java:324)
    2. org.apache.oozie.action.hadoop.PigMain.run(PigMain.java:219)
    3. org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:37)
    4. org.apache.oozie.action.hadoop.PigMain.main(PigMain.java:76)
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. org.apache.oozie
    LauncherMapper.map
    1. org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:226)
    1 frame
  6. Hadoop
    YarnChild$2.run
    1. org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
    2. org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:433)
    3. org.apache.hadoop.mapred.MapTask.run(MapTask.java:344)
    4. org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:162)
    4 frames
  7. Java RT
    Subject.doAs
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAs(Subject.java:415)
    2 frames
  8. Hadoop
    UserGroupInformation.doAs
    1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
    1 frame
  9. Hadoop
    YarnChild.main
    1. org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:157)
    1 frame