You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/13 23:00:40 UTC

[jira] [Resolved] (PIG-2543) PigStats.isSuccessful returns false if embedded pig script has sh commands

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

Daniel Dai resolved PIG-2543.
-----------------------------

      Resolution: Fixed
        Assignee: Daniel Dai
    Hadoop Flags: Reviewed

Patch committed to 0.10/trunk.
                
> PigStats.isSuccessful returns false if embedded pig script has sh commands
> --------------------------------------------------------------------------
>
>                 Key: PIG-2543
>                 URL: https://issues.apache.org/jira/browse/PIG-2543
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.1, 0.10
>            Reporter: Vivek Padmanabhan
>            Assignee: Daniel Dai
>             Fix For: 0.10
>
>         Attachments: PIG-2543-1.patch, PIG-2543-2.patch
>
>
> For the below script even though the command is successful, result.isSuccessful() returns false and hence raise exception
> {code}
> #!/usr/bin/python
> from org.apache.pig.scripting import Pig
> Q = Pig.compile("sh echo mymessage")
> result = Q.bind().runSingle()
> if result.isSuccessful() :
>     print 'Pig job succeeded'
> else :
>     raise 'Cant run sh command'
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira