Hi,

I am getting a NPE while trying to execute a pig script from
eclipse(calling Main with arguments). On debugging, I found that JarManager.
*getDefaultJars*() had a null string in the list. I have fixed the code by
adding a null check. Should I raise a jira for the same and submit the
patch?

Below are the logs while trying to execute a pig script from command line
and eclipse.
pig-0.16.0-SNAPSHOT-core-h2.jar is absent in the list of defaultJars
returned by JarManager.*getDefaultJars*(), when executed from eclipse.


*Jars loaded while trying to run from command line*

2015-11-26 21:23:05,923 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler
- Added jar
file:/Users/sandz/development/open_source/javaProjects/pigApache/pig/pig-0.16.0-SNAPSHOT-core-h2.jar
to DistributedCache through
/tmp/temp-1698962350/tmp2076562205/pig-0.16.0-SNAPSHOT-core-h2.jar

2015-11-26 21:23:05,942 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler
- Added jar
file:/Users/sandz/development/open_source/javaProjects/pigApache/pig/lib/automaton-1.11-8.jar
to DistributedCache through
/tmp/temp-1698962350/tmp-846231370/automaton-1.11-8.jar

2015-11-26 21:23:05,957 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler
- Added jar
file:/Users/sandz/development/open_source/javaProjects/pigApache/pig/lib/antlr-runtime-3.4.jar
to DistributedCache through
/tmp/temp-1698962350/tmp437639945/antlr-runtime-3.4.jar

2015-11-26 21:23:05,984 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler
- Added jar
file:/Users/sandz/development/open_source/javaProjects/pigApache/pig/lib/joda-time-2.5.jar
to DistributedCache through
/tmp/temp-1698962350/tmp270697140/joda-time-2.5.jar


----

*Jars loaded while trying to run from eclipse*

2015-11-26 21:24:16,257 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler
- Added jar
file:/Users/sandz/development/open_source/javaProjects/pigApache/pig/build/ivy/lib/Pig/automaton-1.11-8.jar
to DistributedCache through
/tmp/temp295957877/tmp-903733415/automaton-1.11-8.jar

2015-11-26 21:24:16,273 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler
- Added jar
file:/Users/sandz/development/open_source/javaProjects/pigApache/pig/build/ivy/lib/Pig/antlr-runtime-3.4.jar
to DistributedCache through
/tmp/temp295957877/tmp545017631/antlr-runtime-3.4.jar

2015-11-26 21:24:16,308 [main] INFO
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler
- Added jar
file:/Users/sandz/development/open_source/javaProjects/pigApache/pig/build/ivy/lib/Pig/joda-time-2.5.jar
to DistributedCache through
/tmp/temp295957877/tmp149211969/joda-time-2.5.jar


Thanks,
Sandeep

Reply via email to