Details
Description
pig -useHCatalog hdfs://myserver:8020/load/scripts/mydir/myscript.pig
throws a NPE due to a bogus if statement (patch included)
Error before Pig is launched
----------------------------
ERROR 2999: Unexpected internal error. null
java.lang.NullPointerException
at org.apache.pig.impl.io.FileLocalizer.fetchFilesInternal(FileLocalizer.java:799)
at org.apache.pig.impl.io.FileLocalizer.fetchFiles(FileLocalizer.java:767)
at org.apache.pig.PigServer.registerJar(PigServer.java:546)
at org.apache.pig.PigServer.addJarsFromProperties(PigServer.java:253)
at org.apache.pig.PigServer.<init>(PigServer.java:231)
at org.apache.pig.PigServer.<init>(PigServer.java:214)
at org.apache.pig.tools.grunt.Grunt.<init>(Grunt.java:46)
at org.apache.pig.Main.run(Main.java:603)
at org.apache.pig.Main.main(Main.java:164)
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.hadoop.util.RunJar.main(RunJar.java:212)
================================================================================