<?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 PutSFTP failed to rename dot file when &amp;quot;Outbound Policy = Batch Output&amp;quot; for a child processor group in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387033#M246225</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The two most common scenarios for this type of failure are:&lt;BR /&gt;1. File already exists with same name when trying to rename.&amp;nbsp; Typically resolved by using an update attribute when a failure exists to modify the filename.&amp;nbsp; Perhaps use the &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#nextint" target="_blank"&gt;nextInt&lt;/A&gt; NiFi expression Language function to add an incremental number to filename or in your case modify the time by adding a few milliseconds to it.&lt;BR /&gt;2. Some process is consuming the dot (.) filename before the putSFTP processor has renamed it.&amp;nbsp; This requires modifying the downstream process to ignore dot files.&lt;BR /&gt;&lt;BR /&gt;While it is great that run duration and run schedule increases appear to resolve this issue, I think you are dealing will a millisecond raise condition and these two options will not always guarantee success here.&amp;nbsp; Best option is to programmatically deal with the failures with a filename attribute modification or change who you are uniquely naming your files if possible.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 12:56:10 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-04-23T12:56:10Z</dc:date>
    <item>
      <title>Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386195#M245962</link>
      <description>&lt;P&gt;My data flow starts from a single FlowFile produced by a Sqoop job, which then expands into multiple FlowFiles after executing the GetHDFSFileInfo Processor (based on the number of HDFS files). To capture all failure scenarios, I have created a Child processor group with the following processors&lt;/P&gt;&lt;P&gt;Input Port --&amp;gt; GetHDFSFileInfo --&amp;gt; RouteOnAttribute --&amp;gt; UpdateAttribute --&amp;gt; FetchHDFS --&amp;gt; PutSFTP --&amp;gt; ModifyBytes --&amp;gt; Output Port&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Main Processor Group&lt;BR /&gt;--------------------&lt;BR /&gt;RouteOnAttribute --&amp;gt; Above mentioned Child Processor Group --&amp;gt; MergeContent --&amp;gt; downstream processors&lt;/P&gt;&lt;P&gt;The child processor group is configured with "FlowFile Concurrency = Single FlowFile Per Node" and "Outbound Policy = Batch Output" to ensure that all fetched FlowFiles are successfully processed (written to the SFTP server).&lt;/P&gt;&lt;P&gt;My GetHDFSFileInfo processor returns 20 HDFS files, and each execution successfully transfers 18 to 19 files to my SFTP server. However, during each execution, one or two file transfers fail in the PutSFTP Processor with the error message 'Failed to rename dot-file.' An error screenshot is attached below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40288iE3F82B72C35097CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am facing this issue only when the child processor is configured with "Outbound Policy = Batch Output".&lt;BR /&gt;If we try without child processor group, then also it is working.&lt;/P&gt;&lt;P&gt;Could you please help to fix the issue with putSFTP processor.&lt;/P&gt;&lt;P&gt;This is in continuation with the solution provided in the thread &lt;A href="https://community.cloudera.com/t5/Support-Questions/How-to-convert-merge-Many-flow-files-to-single-flow-file-in/m-p/385990#M245919" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/How-to-convert-merge-Many-flow-files-to-single-flow-file-in/m-p/385990#M245919&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 18:48:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386195#M245962</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-05T18:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386333#M246005</link>
      <description>&lt;DIV&gt;1) Initially, I faced the "NiFi PutSFTP failed to rename dot file issue" only when the child processor was configured with "Outbound Policy = Batch Output". It worked without the child processor group.&lt;/DIV&gt;&lt;DIV&gt;2) I modified the PutSFTP failure retry attempt to 3, and it fixed the issue.&lt;/DIV&gt;&lt;DIV&gt;3) Later, I introduced a RouteOnAttribute after the FetchHDFS processor for some internal logic implementation, and the PutSFTP error started again.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;4) This time, I updated the "Run Schedule" of the PutSFTP processor from 0Sec to 3 Sec, and it again fixed the issue.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;5) I have a requirement to transfer stats of each file (with file name, row count, file size) etc. So, I introduced one more PutSFTP processor, and the issue popped up again.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;6) Finally, I made the following changes to both of my PutSFTP processors:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Added PutSFTP failure retry attempt to 3.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Modified the "Run Schedule" of the first PutSFTP Processor to "7 Sec".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Modified the "Run Schedule" of the second PutSFTP Processor to "10 Sec".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now it is working fine. Are we getting this issue because of 20 flowfiles processing at a time ? Could you please suggest if this is the right way to fix the "NiFi PutSFTP failed to rename dot file issue"?&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:49:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386333#M246005</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-09T11:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386444#M246044</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&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/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, would you be able to help&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 04:44:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386444#M246044</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-04-12T04:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386487#M246059</link>
      <description>&lt;P&gt;It looks like a timing or multiple components accessing the same sftp server.&amp;nbsp; sFTP is very slow and nonthreaded and timing of accessing them can be tricky.&lt;/P&gt;&lt;P&gt;I recommend setting only 1 PutSFTP instance (dont run on cluster and don't have more than one post at once).&lt;/P&gt;&lt;P&gt;We need to see logs and know operating system, java version, NiFi version and some error details.&amp;nbsp; &amp;nbsp;File system type ,&amp;nbsp; sftp server version and the type and size of the HDFS files.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 15:55:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386487#M246059</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2024-04-13T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386562#M246074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please find below the requested info.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;Operating system:&amp;nbsp;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Linux&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;Java version :&amp;nbsp;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nifi Server:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; openjdk version "11.0.22" 2024-01-16 LTS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OpenJDK Runtime Environment (Red_Hat-11.0.22.0.7-1) (build 11.0.22+7-LTS)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OpenJDK 64-Bit Server VM (Red_Hat-11.0.22.0.7-1) (build 11.0.22+7-LTS, mixed mode, sharing)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SFTP Server:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;openjdk version "1.8.0_402"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OpenJDK Runtime Environment (build 1.8.0_402-b06)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;NiFi version:&amp;nbsp; &amp;nbsp;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cloudera Flow Management (CFM) 2.1.5.1027&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.18.0.2.1.5.1027-2 built 02/09/2023 22:16:12 CST&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tagged nifi-1.18.0-RC4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Powered by Apache NiFi 1.18.0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;File system type: &lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HDFS&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;Sftp server version :&amp;nbsp;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OpenSSH_7.4p1, OpenSSL 1.0.2k-fips&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;Type and size of the HDFS files:&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to transfer files ranging in size from 300KB to 800KB. Typically, my HDFS path contains a total of 20 files. In production, the file sizes may vary from 300MB to 600MB, and the total file count would still be 20&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And I am running on a Nifi Clustor&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am intermittently facing this failure&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;'Failed to rename dot-file.'&lt;/SPAN&gt;&amp;nbsp;for one or two files while preforming PutSFTP&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The first&amp;nbsp;PutSFTP processor is used to transfer the actual file and the second one is used to transfer the stats file corresponding to that file like file name, size, row count etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can limit the second&amp;nbsp;&amp;nbsp;PutSFTP&amp;nbsp; processor to transfer it once with all the 20 files details. ie, Transfer one stats file with the details of all 20 files. Can we store like this info in a variable line by line and then send at the end ?&amp;nbsp;&lt;BR /&gt;FileName~RowCount~FileSize&lt;BR /&gt;file1~100~1250&lt;BR /&gt;file2~200~3000&lt;BR /&gt;The above will also satisfy my requirement instead of multiple stats files for the second PutSFTP processor.&lt;BR /&gt;&lt;BR /&gt;Could you pleae some inputs on this issue.&amp;nbsp;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 11:40:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386562#M246074</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-15T11:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386600#M246089</link>
      <description>&lt;P&gt;How much RAM on the machine and how much is dedicated in the NiFi configuration (or Cloudera manager)?&amp;nbsp; &amp;nbsp;Should be at least&amp;nbsp; 8GB of RAM.&lt;/P&gt;&lt;P&gt;Either the network is slow or you don't have enough RAM.&lt;/P&gt;&lt;P&gt;You can build files from the stats very easily.&amp;nbsp; &amp;nbsp;That is a good strategy.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 17:55:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386600#M246089</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2024-04-15T17:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386737#M246138</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we introduce any "&lt;SPAN&gt;Run Schedule" delay for the putSFTP processor will it help to fix this issue ?&lt;/SPAN&gt;&amp;nbsp;I mean to change the&amp;nbsp; "&lt;SPAN&gt;Run Schedule" from 0 seconds to 30 seconds or something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is no network delay and regarding the RAM size, we are yet to hear back from the platform team.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 09:27:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386737#M246138</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-18T09:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386748#M246141</link>
      <description>&lt;P&gt;delay could help&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 11:14:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386748#M246141</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2024-04-18T11:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386754#M246143</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Question for you:&lt;BR /&gt;- If you leave the putSFTP processor stopped, run your dataflow so all FlowFiles queue in front of the putSFTP processor and then start the putSFTP processor, does the issue still happen?&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;- Does issue only happen when the flow is an all started/running state?&lt;BR /&gt;&lt;BR /&gt;Answers to above can help in determining if changing the run schedule will help here.&lt;BR /&gt;&lt;BR /&gt;Run Schedule details:&lt;BR /&gt;- The run schedule works in conjunction with Timer Driven scheduling strategy.&amp;nbsp; This schedule setting controls how often a component will get scheduled to execute (different from when it actually executes.&amp;nbsp; Execution depends on available threads in the NiFi Timer Driven thread pool shared by all components). By default this is set to 0 secs which means that NiFi should schedule his processor as often as possible (Basically schedule it again as soon as an available concurrent task (concurrent tasks default is 1) is available to it.&amp;nbsp; To avoid CPU saturation here, NiFi builds in a yield duration if upon scheduling of a processor there is no work to be done (inbound connection(s) are empty).&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Depending on load on yoru system and dataflow, speed of network, this could happen very quick meaning it scheduled, sees only one FlowFile in the inbound connection at time of schedule and processes only that one FlowFile instead of a batch.&amp;nbsp; It then closes that thread and starts a new one for next FlowFile instead of processing multiple FlowFiles in one SFTP connection.&amp;nbsp; By changing run schedule you are allowing more time between scheduling for FlowFiles to queue on the inbound connection so they get batch processed in a single SFTP connection.&lt;BR /&gt;&lt;BR /&gt;Run Duration details:&lt;BR /&gt;Another option on processors is the run duration setting.&amp;nbsp; What this adjustment does is upon scheduling of a processor the execution will not end until the configured run duration has elapsed.&amp;nbsp; So lets say at time of scheduling (run schedule) there is one FlowFile in inbound connection queue (remember we are dealing with micro seconds here, so not something you can visualize yourself via the UI).&amp;nbsp; That execution thread will execute against that FlowFile, but rather then close out the session immediately committing the FlowFile to an outbound relationship, it will check inbound connection for another FlowFile and process it in same session.&amp;nbsp; It will continue to do this until the run duration is satisfied at which time all processed FlowFiles during that execution are committed to downstream relationship(s).&amp;nbsp; So Run Duration might be another setting you try to see if it helps with your issue.&amp;nbsp; If you try run duration, i'd set run schedule to default.&lt;BR /&gt;&lt;BR /&gt;You may also want to look at your SFTP server logs to see what is happening when the file rename attempts are failing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:10:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386754#M246143</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-04-18T13:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386781#M246147</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the great suggestions and super helpful information.&lt;/P&gt;&lt;P&gt;Here are the results of what I tried:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I set the Run Schedule to 0 seconds and stopped the PutSFTP processor. After all 20 flowfiles were queued up, I started it again.&lt;BR /&gt;Result: Out of 20 flow files, 1 failed.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;I set the Run Schedule to 0 seconds and let the flow run with all processors started (Here also, all 20 flow files came almost same time)&lt;BR /&gt;Result: Out of 20 flow files, 2 failed.&lt;/LI&gt;&lt;LI&gt;I updated the Run Schedule of the PutSFTP processor from 0 seconds to 30 seconds.&lt;BR /&gt;Result: No failures, all 20 flow files passed.&lt;/LI&gt;&lt;LI&gt;I updated the "Run Duration" to 500ms.&lt;BR /&gt;Result: No failures, all 20 flow files passed.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Could you please suggest the best approach to address this scenario? Option 3 or 4&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 19:01:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386781#M246147</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-18T19:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386786#M246150</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I think step one would be looking more into the failures.&amp;nbsp; Are the failures always with rename of dot file?&amp;nbsp; Put SFTP is writing to a dot file (hidden file) and then upon write completion moves file from .xyz to xyz.&amp;nbsp; &amp;nbsp;You also never shared your complete putSFTP processor configuration.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. Did you inspect the SFTP server log for any logging related to the failures you encountered?&lt;BR /&gt;2. What is being done with the files once placed on the SFTP server?&amp;nbsp; Is there some other process consuming them from there?&lt;BR /&gt;3. Any chance that other process is consuming the dot files (hidden files) before NiFi has a chance to rename them?&lt;BR /&gt;4. Any of the FlowFiles queued have the same "filename" attribute as another FlowFile or a file already present on the target SFTP server?&amp;nbsp; (this is a common issue where the file of same name still exists on the target when the other is written as dot file and then rename fails.&amp;nbsp; Then on retry some process consumed the duplicate and the new is then successful on rename).&lt;BR /&gt;&lt;BR /&gt;As far as option 3 and 4 go, both introduce some latency in your dataflow.&lt;BR /&gt;with (3) the processor only get scheduled once every 30 seconds.&amp;nbsp; So FlowFiles will queue up every 30 seconds.&amp;nbsp; The putSFTP processor has a batch setting for how many FlowFiles will get processed in that execution.&amp;nbsp; If more FlowFiles are queued then that batch setting, he extras will sit until next time processor is scheduled.&lt;BR /&gt;&lt;BR /&gt;My concern is that latency introduced my options 3 and 4 may simply be masking the actual issue needing to be addressed.&lt;BR /&gt;&lt;BR /&gt;With (4) the processor gets scheduled as fast as possible, but when it executes the thread remains active for 500ms working on as many FlowFiles as possible in the single execution.&amp;nbsp; Then at 500ms it close out that thread and the processor (assuming run schedule of 0) would immediate schedule the processor again.&lt;BR /&gt;&lt;BR /&gt;As far as which is better, it is about getting best performance throughput with least amount of latency.&amp;nbsp; &amp;nbsp; Data volumes, sizes, etc come it play here.&amp;nbsp; I typically favor option 4 myself.&amp;nbsp; But if option 3 still works for you but with a much lower runs schedule (30 secs is a lot of latency for a continues flow)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 20:30:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386786#M246150</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-04-18T20:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386974#M246204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your suggestions&lt;/P&gt;&lt;P&gt;The failures always occur during the renaming of dot files.&lt;/P&gt;&lt;P&gt;There is no process consuming the file once it is placed on the SFTP server, and there is no chance that another process is consuming the dot files. None of the queued FlowFiles have the same 'filename' attribute as another FlowFile or a file already present on the target SFTP server.&lt;/P&gt;&lt;P&gt;Unfortunately, we don't have permission to view the SFTP logs on our Linux server. I will connect with the admin team to obtain sample logs.&lt;/P&gt;&lt;P&gt;PFB my putSFTP Processor configuration&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s198_3-1713811891158.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40382iE5DA0DA466928903/image-size/medium?v=v2&amp;amp;px=400" role="button" title="s198_3-1713811891158.png" alt="s198_3-1713811891158.png" /&gt;&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="s198_1-1713811687426.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40380i1E7851638B0F6F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="s198_1-1713811687426.png" alt="s198_1-1713811687426.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s198_2-1713811727896.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40381i285E566E16B99DA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="s198_2-1713811727896.png" alt="s198_2-1713811727896.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 18:51:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386974#M246204</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-22T18:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386976#M246205</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;- Do you have the full stack trace from the nifi-app.log when the rename fails?&lt;BR /&gt;- Is it always the same exact stack trace?&lt;BR /&gt;- Have tried putting this processor class in DEBUG via the NiFi logback.xml to see what additional logging it may produce when the exception occurs?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 19:11:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/386976#M246205</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-04-22T19:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387009#M246217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies!&lt;/P&gt;&lt;P&gt;I realized that the failed FlowFiles have the same 'filename' attribute as another FlowFile that has already been transferred to the target SFTP server.&lt;/P&gt;&lt;P&gt;There are 20 files available in my HDFS path, and once the file is fetched, I am updating the 'filename' attribute using the below expression. However, one or two files are getting the same 'filename,' which is causing the error 'failed to rename dot-file':&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;${ExtractName}_${now():format('yyyyMMddHHmmssSSS')}.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you for providing inputs to identify the root cause of this issue. Now, could you please suggest the best approach to avoid this scenario, as even with milliseconds, it is getting the same filename?&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you suggested earlier, can we go with "&lt;SPAN&gt;Run Duration"&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;setting for putSFTP processor&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 06:56:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387009#M246217</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-23T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387033#M246225</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The two most common scenarios for this type of failure are:&lt;BR /&gt;1. File already exists with same name when trying to rename.&amp;nbsp; Typically resolved by using an update attribute when a failure exists to modify the filename.&amp;nbsp; Perhaps use the &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#nextint" target="_blank"&gt;nextInt&lt;/A&gt; NiFi expression Language function to add an incremental number to filename or in your case modify the time by adding a few milliseconds to it.&lt;BR /&gt;2. Some process is consuming the dot (.) filename before the putSFTP processor has renamed it.&amp;nbsp; This requires modifying the downstream process to ignore dot files.&lt;BR /&gt;&lt;BR /&gt;While it is great that run duration and run schedule increases appear to resolve this issue, I think you are dealing will a millisecond raise condition and these two options will not always guarantee success here.&amp;nbsp; Best option is to programmatically deal with the failures with a filename attribute modification or change who you are uniquely naming your files if possible.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 12:56:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387033#M246225</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-04-23T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387040#M246231</link>
      <description>&lt;P&gt;#4 - no failures.&amp;nbsp; &amp;nbsp;maybe your ftp server can't handle more than that&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 14:35:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387040#M246231</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2024-04-23T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi PutSFTP failed to rename dot file when "Outbound Policy = Batch Output" for a child processor group</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387041#M246232</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; for providing timely responses and quick solutions to the queries. You are really helping the community grow. Hats off to you. Appreciate it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 14:56:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-PutSFTP-failed-to-rename-dot-file-when-quot-Outbound/m-p/387041#M246232</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-23T14:56:08Z</dc:date>
    </item>
  </channel>
</rss>

