PIG Error message "org.apache.pig.tools.grunt.Grunt - ERROR 2998: Unhandled internal error. name"

Problem:

Error when try to load a file in Apache PIG

grunt> Data = LOAD 'MyTest.csv' using PigStorage(',');


2013-11-05 14:14:57,699 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2998: Unhandled internal error. name
2013-11-05 14:14:57,699 [main] WARN  org.apache.pig.tools.grunt.Grunt - There is no log file to write to.
2013-11-05 14:14:57,699 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.NoSuchFieldError: name
    at org.apache.pig.parser.QueryParserStringStream.(QueryParserStringStream.java:32)
    at org.apache.pig.parser.QueryParserDriver.tokenize(QueryParserDriver.java:200)
    at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:168)
    at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1574)
    at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1547)
    at org.apache.pig.PigServer.registerQuery(PigServer.java:549)
    at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:971)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:386)
    at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:190)
    at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:166)
    at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69)
    at org.apache.pig.Main.run(Main.java:490)
    at org.apache.pig.Main.main(Main.java:111)
    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:616)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:156)



Solution:

1. Please Check PIG Version is compatible with Hadoop or not.
2. Please check HIVE is running on same machine. If so Please export HIVE_HOME path to Blank. For some reasons Pig and hive on same machine will not work.

Comments