pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2543) PigStats.isSuccessful returns false if embedded pig script has sh commands
Date Tue, 13 Mar 2012 20:24:40 GMT

    [ https://issues.apache.org/jira/browse/PIG-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228663#comment-13228663
] 

Thejas M Nair commented on PIG-2543:
------------------------------------

+1
                
> 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
>             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

        

Mime
View raw message