Troubleshooting
Problem
How to resolve ClassNotFoundException error while running Pig load script?
Symptom
Pig load script failed with following error:
2014-03-05 13:16:35,147 INFO org.apache.hadoop.util.NativeCodeLoader: Loaded the native-hadoop library
2014-03-05 13:16:35,147 INFO org.apache.hadoop.io.compress.snappy.LoadSnappy: Snappy native library loaded
2014-03-05 13:17:05,575 ERROR org.apache.pig.tools.pigstats.SimplePigStats: ERROR 2997: Unable to recreate exception from backed error: Error: java.lang.ClassNotFoundException: org.antlr.runtime.BaseRecognizer
at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at org.apache.pig.impl.util.Utils.parseSchema(Utils.java:175)
at org.apache.pig.impl.util.Utils.getSchemaFromString(Utils.java:168)
at org.apache.pig.builtin.PigStorage.applySchema(PigStorage.java:265)
at org.apache.pig.builtin.PigStorage.getNext(PigStorage.java:246)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:194)
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:531)
at org.apache.hadoop.mapreduce.MapContext.nextKeyValue(MapContext.java:67)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:763)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:369)
at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
at java.security.AccessController.doPrivileged(AccessController.java:310)
at javax.security.auth.Subject.doAs(Subject.java:573)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1149)
at org.apache.hadoop.mapred.Child.main(Child.java:249)
[{"Product":{"code":"SSCRJT","label":"IBM Db2 Big SQL"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Open Source Tools","Platform":[{"code":"PF016","label":"Linux"}],"Version":"2.1.0","Edition":"Enterprise Edition;Basic Edition","Line of Business":{"code":"LOB76","label":"Data Platform"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
08 April 2021
UID
swg21668809