Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Nifi execute streamcommand Failed to  write flow file to stdin due to broken pipe:java.io.IOException:Broken pipe

avatar
Rising Star

Hi Team,

 

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  , instead of merging files it pushing both individual files to outputstream and throwing the below error at  execute streamcommand processor.

"Failed to  write flow file to stdin due to broken pipe:java.io.IOException:Broken pipe"

Below is flow which i'm using 

 

PradNiFi1236_1-1670947066838.png

 

and the command Arguements which i'm using is

-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

 

and here is my configuration of executeStreamCommand:

PradNiFi1236_2-1670947237730.png

Could you please help me on this?

 

1 ACCEPTED SOLUTION

avatar
Rising Star
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
1 REPLY 1

avatar
Rising Star
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login