You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2011/07/16 00:10:00 UTC

[jira] [Updated] (PIG-2027) NPE if Pig don't have permission for log file

     [ https://issues.apache.org/jira/browse/PIG-2027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-2027:
----------------------------

    Status: Patch Available  (was: Open)

Marking as submitpatch so it can get reviewed and committed.

> 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
>
>         Attachments: PIG-2027-1.patch
>
>
> 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