hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-224) Streaming returns -127 on regardless of the error code
Date Tue, 29 Apr 2008 18:23:56 GMT

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

Olga Natkovich commented on PIG-224:
------------------------------------

Sample python script:

#!/usr/bin/python

import sys
import optparse

def main():
    p = optparse.OptionParser()
    p.add_option('--upper', '-u', action="store_true")
    options, arguments = p.parse_args()

    sys.exit(-3)

    line = sys.stdin.readline()
    while line:
        if options.upper == True:
            line = line.upper()
        sys.stdout.write(line)
        line = sys.stdin.readline()

if __name__ == '__main__':
    main()


Pig script: 
define X `MyStreamAppExitBefore.py` ship('MyStreamAppExitBefore.py') stderr('error_handling_1');
A = load ':studenttab10k';
B = stream A through X;
store B into 'error_handling_1';

> Streaming returns -127 on regardless of the error code
> ------------------------------------------------------
>
>                 Key: PIG-224
>                 URL: https://issues.apache.org/jira/browse/PIG-224
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Olga Natkovich
>            Assignee: Arun C Murthy
>
> If streaming application fails with any error code, the return seen via UI is always
-127.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message