<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to add output stream relationship result of Execute Stream Command processor into original flow file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345574#M234570</link>
    <description>&lt;P&gt;Yes. But the thing is script is generating token decryption result and original flow file contains body. But the merge content processor is merging flow files randomly&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 13:29:58 GMT</pubDate>
    <dc:creator>Techie123</dc:creator>
    <dc:date>2022-06-14T13:29:58Z</dc:date>
    <item>
      <title>how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345567#M234566</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;I need a help, I am new to NiFi. I am using python script. I wanted to add output stream relationship result of ExecuteStreamCommand processor into original flow file. In original file I am getting body and the script is generating users information. Please help me&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:23:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345567#M234566</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-06-14T12:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345570#M234567</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98568"&gt;@Techie123&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The ExecuteStreamCommand processor is working as designed:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.ExecuteStreamCommand/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.ExecuteStreamCommand/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Executes an external command on the contents of a flow file, and creates a new flow file with the results of the command.&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;You could route both the "original" and "output stream " relationships via the same outbound connection to a mergeContent processor which can merge the content from both source FlowFiles into a single FlowFile.&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.MergeContent/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.MergeContent/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:57:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345570#M234567</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-06-14T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345571#M234568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure I fully understand your question. Can you please provide screenshot of the flow you have and explain the expected output of each processor? From what I can understand you want to keep the original file but somehow you want to attach the output of the command stream to it. There is property on the ExecuteCommandStream Processor called "&lt;SPAN&gt;Output Destination Attribute&lt;/SPAN&gt;" where you can store the output stream as an attribute on the original flow file. if you want to modify the content of the flow file after that based on the new attribute then you can use ExecuteScript Processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:01:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345571#M234568</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-06-14T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345574#M234570</link>
      <description>&lt;P&gt;Yes. But the thing is script is generating token decryption result and original flow file contains body. But the merge content processor is merging flow files randomly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:29:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345574#M234570</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-06-14T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345575#M234571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, it should not return as an attribute but the data, because the&amp;nbsp;&lt;SPAN&gt;output stream contains decrypted data and the original flow file also has the some important data&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:32:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345575#M234571</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-06-14T13:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345576#M234572</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;, can we append&amp;nbsp;&lt;SPAN&gt;output stream result to original&amp;nbsp;flow file without using&amp;nbsp;mergeContent processor because the we have multiple incoming flow files and i just wanted to append two at a time, original flow file with the&amp;nbsp;output stream result&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:35:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345576#M234572</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-06-14T13:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345577#M234573</link>
      <description>&lt;P&gt;Is there a&amp;nbsp; unique attribute on the original flowfile (like filename) that gets set on the output stream ? if so, you can set the mergeContent processor&amp;nbsp; property "&lt;SPAN&gt;Correlation Attribute Name&lt;/SPAN&gt;" to the attribute containing the unique value that is shared between original and output, this way you guarantee that only related original and output are getting merged.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 14:00:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345577#M234573</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-06-14T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345578#M234574</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, thanks for quick response. But I am new to nifi, can you please explain it a bit. you want me to add the filename explicitly? and then merged these flow files?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 14:21:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345578#M234574</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-06-14T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345579#M234575</link>
      <description>&lt;P&gt;how is the original flowfile is generated. usually you should have filename&amp;nbsp; attribute set by default on the original flowfile. this should be unique for the flowfile and this filename could be passed to the output stream, can you check that?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 14:42:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345579#M234575</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-06-14T14:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345582#M234577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, I am doing the same but still not getting the desired output.&lt;/P&gt;&lt;P&gt;Can you refer snapshot, Am i missing something?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Techie123_0-1655221054777.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34573i15199CF9455E6B2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Techie123_0-1655221054777.png" alt="Techie123_0-1655221054777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:37:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345582#M234577</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-06-14T15:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345586#M234578</link>
      <description>&lt;P&gt;first you need to check if there is an attribute called filename on the original flowfile and its the same passed the output stream flowfile. If there is, then you should specify it as "filename" in the merge content property and NOT as "${filename}".&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:06:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345586#M234578</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-06-14T17:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to add output stream relationship result of Execute Stream Command processor into original flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345639#M234591</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;, thanks a lot for you help. I'm getting data as expected.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 03:35:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-output-stream-relationship-result-of-Execute/m-p/345639#M234591</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-06-15T03:35:15Z</dc:date>
    </item>
  </channel>
</rss>

