Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10.0
-
None
-
None
-
None
-
pig-0.10.0, Hadoop 2.0.0-cdh4.0.1 on Kubuntu 12.04 64Bit.
Description
The class org.apache.pig.pigunit.pig.PigServer does not set the default log level of its instance of PigContext so that pigunit tests that have
set debug off;
in them, will cause a NullPointerException at org.apache.pig.PigServer line 291 because the default log level is not set.
So I think org.apache.pig.pigunit.pig.PigServer should do something like
pigContext.setDefaultLogLevel(Level.INFO);
in its contructors.