NPE if Pig don't have permission for log file
---------------------------------------------
Key: PIG-2027
URL: https://issues.apache.org/jira/browse/PIG-2027
Project: Pig
Issue Type: Bug
Reporter: Daniel Dai
Assignee: Daniel Dai
Priority: Trivial
Fix For: 0.10
If specify a log file to Pig, but Pig don't have write permission, if any
failure in Pig script, we will get a NPE in addition to Pig script failure:
2011-05-02 13:18:36,493 [main] ERROR org.apache.pig.tools.grunt.Grunt -
java.lang.NullPointerException
at org.apache.pig.impl.util.LogUtils.writeLog(LogUtils.java:172)
at org.apache.pig.impl.util.LogUtils.writeLog(LogUtils.java:79)
at
org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:131)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:180)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:152)
at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:90)
at org.apache.pig.Main.run(Main.java:554)
at org.apache.pig.Main.main(Main.java:109)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira