<?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: Nifi execute streamcommand Failed to  write flow file to stdin due to broken pipe:java.io.IOException:Broken pipe in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-execute-streamcommand-Failed-to-write-flow-file-to/m-p/359750#M238189</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally was able to accomplish this task. after changing the Flow to below.&lt;/P&gt;&lt;P&gt;Before keeping the Flowfiles in putFile path updating filename of each flowfile to same name taking two flow files in respected putfile paths (invoice, QRBill) folders separately and placing them in respective folders using 2 put files. then after putfile&amp;nbsp; adding merge content(actual merging two files not happening here, but we are getting one single output) to get single flowfile and then in the execute. and then in the execute stream command for both inputs giving that same filename for respective folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pradeep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Dec 2022 06:54:11 GMT</pubDate>
    <dc:creator>PradNiFi1236</dc:creator>
    <dc:date>2022-12-18T06:54:11Z</dc:date>
    <item>
      <title>Nifi execute streamcommand Failed to  write flow file to stdin due to broken pipe:java.io.IOException:Broken pipe</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-execute-streamcommand-Failed-to-write-flow-file-to/m-p/359458#M238124</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to merge two files(.pdf format) and combine it to one file using execute streamcommand using jar file. at java side the merge is working using the same jar. but nifi side the command is not working&amp;nbsp; , instead of merging files it pushing both individual files to outputstream and throwing the below error at&amp;nbsp; execute streamcommand processor.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Failed to &amp;nbsp;write flow file to stdin due to broken pipe:java.io.IOException:Broken pipe"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is flow which i'm using&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PradNiFi1236_1-1670947066838.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36445i54DF97F1A8D0DAC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PradNiFi1236_1-1670947066838.png" alt="PradNiFi1236_1-1670947066838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the command Arguements which i'm using is&lt;/P&gt;&lt;P&gt;-jar;pdfmerge-0.0.1-SNAPSHOT.jar;/opt/nifi/nifi-current/temppdf/${filename:startsWith('invoice_')};/opt/nifi/nifi-current/temppdf/${filename:startsWith('QRBill_')};/opt/nifi/nifi-current/temp2/Output.pdf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here is my configuration of executeStreamCommand:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PradNiFi1236_2-1670947237730.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36446i9E02B37D4274ACFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PradNiFi1236_2-1670947237730.png" alt="PradNiFi1236_2-1670947237730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please help me on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 17:31:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-execute-streamcommand-Failed-to-write-flow-file-to/m-p/359458#M238124</guid>
      <dc:creator>PradNiFi1236</dc:creator>
      <dc:date>2022-12-13T17:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi execute streamcommand Failed to  write flow file to stdin due to broken pipe:java.io.IOException:Broken pipe</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-execute-streamcommand-Failed-to-write-flow-file-to/m-p/359750#M238189</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally was able to accomplish this task. after changing the Flow to below.&lt;/P&gt;&lt;P&gt;Before keeping the Flowfiles in putFile path updating filename of each flowfile to same name taking two flow files in respected putfile paths (invoice, QRBill) folders separately and placing them in respective folders using 2 put files. then after putfile&amp;nbsp; adding merge content(actual merging two files not happening here, but we are getting one single output) to get single flowfile and then in the execute. and then in the execute stream command for both inputs giving that same filename for respective folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pradeep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 06:54:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-execute-streamcommand-Failed-to-write-flow-file-to/m-p/359750#M238189</guid>
      <dc:creator>PradNiFi1236</dc:creator>
      <dc:date>2022-12-18T06:54:11Z</dc:date>
    </item>
  </channel>
</rss>

