<?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: apache nifi executestreamcommand issue with using rsync in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377598#M243304</link>
    <description>&lt;P&gt;can we not do it using the way I have done by configuring the properties in executestreamcommand.&lt;/P&gt;&lt;P&gt;Is there a way that I can see the log or else the complete scipt Nifi is trying to execute. This is the complete script that I want to execute&lt;BR /&gt;&lt;BR /&gt;sshpass -p '123' rsync -avz -e ssh --ignore-existing /test.pdf &lt;A href="mailto:test@172.16.4.59:/home/test/nifioutput" target="_blank"&gt;test@172.16.4.59:/home/test/nifioutput&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 05:49:58 GMT</pubDate>
    <dc:creator>LakshmiTharun</dc:creator>
    <dc:date>2023-10-13T05:49:58Z</dc:date>
    <item>
      <title>apache nifi executestreamcommand issue with using rsync</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377534#M243290</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we recently started evaluating apache nifi for our use cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is one of such sample pipe line that we have constructed&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LakshmiTharun_0-1697085857041.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38645i4DCE0087B0105E17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LakshmiTharun_0-1697085857041.png" alt="LakshmiTharun_0-1697085857041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;we have two processed one is Getfile which checks for files present in a local folder. Once they are available it sends them to the execute stream command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;/P&gt;&lt;P&gt;execute stream command we want to send file that we received from getfile step to a remote linux server. The destination linux server doesn't have an FTP server hence cant use putFTP. This is the command I want to execute to transfer the file&lt;BR /&gt;&lt;BR /&gt;sshpass -p '123' rsync -avz -e ssh --ignore-existing "${filename}" &lt;A href="mailto:test@172.172.172.172:/home/test/nifioutput" target="_blank" rel="noopener"&gt;test@172.172.172.172:/home/test/nifioutput&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the configuration for execute stream command&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LakshmiTharun_1-1697086635511.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38646iE0CC58DF159DE343/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LakshmiTharun_1-1697086635511.png" alt="LakshmiTharun_1-1697086635511.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LakshmiTharun_2-1697086692685.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38647i3BBC844E08FC3F12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LakshmiTharun_2-1697086692685.png" alt="LakshmiTharun_2-1697086692685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;log file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LakshmiTharun_3-1697086803774.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38648i4ADE6BA353388A6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LakshmiTharun_3-1697086803774.png" alt="LakshmiTharun_3-1697086803774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lakshmi Tharun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 05:03:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377534#M243290</guid>
      <dc:creator>LakshmiTharun</dc:creator>
      <dc:date>2023-10-12T05:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: apache nifi executestreamcommand issue with using rsync</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377539#M243292</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107343"&gt;@LakshmiTharun&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 06:51:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377539#M243292</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-10-12T06:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: apache nifi executestreamcommand issue with using rsync</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377546#M243296</link>
      <description>&lt;P&gt;put your command in a shell script named yourscript.sh and make sure NiFi has execute permissions.&amp;nbsp; rsync can be very slow so make sure you have a long timeout on the command.&amp;nbsp; &amp;nbsp;i have seen rsync take 5 minutes to 20 hours.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 10:56:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377546#M243296</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2023-10-12T10:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: apache nifi executestreamcommand issue with using rsync</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377598#M243304</link>
      <description>&lt;P&gt;can we not do it using the way I have done by configuring the properties in executestreamcommand.&lt;/P&gt;&lt;P&gt;Is there a way that I can see the log or else the complete scipt Nifi is trying to execute. This is the complete script that I want to execute&lt;BR /&gt;&lt;BR /&gt;sshpass -p '123' rsync -avz -e ssh --ignore-existing /test.pdf &lt;A href="mailto:test@172.16.4.59:/home/test/nifioutput" target="_blank"&gt;test@172.16.4.59:/home/test/nifioutput&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 05:49:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377598#M243304</guid>
      <dc:creator>LakshmiTharun</dc:creator>
      <dc:date>2023-10-13T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: apache nifi executestreamcommand issue with using rsync</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377632#M243308</link>
      <description>&lt;P&gt;it's very hard to format a long call like that without wrapping it.&amp;nbsp; &amp;nbsp;also you will need to fully list out directories so not /test.pdf but /the/actual/location/even/if/it/s/giant/test.pdf.&amp;nbsp; it may work.&amp;nbsp; &amp;nbsp;you may also need to do /usr/bin/sshpass.&amp;nbsp; &amp;nbsp;it is always easier to just write a simple runme.sh with the text in it, make it executable and test it.&amp;nbsp; &amp;nbsp; also make sure nifi user has permissions to sshpass and if you are running on a cluster that all machines have that binary and have permissions&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 13:53:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-executestreamcommand-issue-with-using-rsync/m-p/377632#M243308</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2023-10-13T13:53:45Z</dc:date>
    </item>
  </channel>
</rss>

