You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (Jira)" <ji...@apache.org> on 2023/08/29 16:33:00 UTC
[jira] [Resolved] (NIFI-6471) ExecuteStreamCommand on using python script forwarding print statements in the Output stream instead of stdout
[ https://issues.apache.org/jira/browse/NIFI-6471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Burgess resolved NIFI-6471.
--------------------------------
Fix Version/s: (was: 1.9.2)
Assignee: Matt Burgess
Resolution: Not A Problem
This is the expected behavior of ExecuteStreamCommand, all output going to stdout is written to the contents of the outgoing FlowFile, including print() statements.
> ExecuteStreamCommand on using python script forwarding print statements in the Output stream instead of stdout
> --------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-6471
> URL: https://issues.apache.org/jira/browse/NIFI-6471
> Project: Apache NiFi
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.9.2
> Environment: centos
> Reporter: animesh verma
> Assignee: Matt Burgess
> Priority: Major
>
> {code:java}
> flowFile = sys.stdin.read()
> print("Next Process")
> sys.stdout.write(str(flowFile))
> {code}
> A simple program as above in ExecuteStreamCommand processor working on python gives output in outputStream as
>
> * Next Process
> * Contents of flowFile whatever they may be
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)