[
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.