[ https://issues.apache.org/jira/browse/PIG-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224083#comment-13224083 ]
Daniel Dai commented on PIG-2543: --------------------------------- The current design of PigStats is all based on mapreduce jobs. It does not have the position for "sh" commands. I propose to adding a flag auxiliaryErrors to PigStats to track non mapreduce errors, and isSuccessful returns true only if all mapreduce job success and no auxiliaryErrors. > 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 > > > 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