<?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: Cron Schedule not working as expected in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/357248#M237523</link>
    <description>&lt;P&gt;Thanks&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;This has solved the problem.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 06:48:17 GMT</pubDate>
    <dc:creator>Jagapriyan</dc:creator>
    <dc:date>2022-11-09T06:48:17Z</dc:date>
    <item>
      <title>NiFi: Cron Schedule not working as expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/356365#M237266</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Problem:&amp;nbsp;&lt;/STRONG&gt;I have set up a listSFTP processor to run between 2am to 2pm everyday.&amp;nbsp; But the files are not being picked up by the processor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Existing setup and configuration:&amp;nbsp;&lt;/STRONG&gt;The files are generated at the SFTP server at 12 am to 1am every day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ListSFTP Configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Schedule:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jagapriyan_0-1666942312909.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36054iF6C7AF6A9BA1199C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jagapriyan_0-1666942312909.png" alt="Jagapriyan_0-1666942312909.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;listing strategy: tracking timestamps&lt;/P&gt;&lt;P&gt;other tracking configuration&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="Jagapriyan_1-1666942595360.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36055i96B9C03FE8C55883/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jagapriyan_1-1666942595360.png" alt="Jagapriyan_1-1666942595360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I start this processor, it runs as expected for 1 day or 2 and after that, the files are not picked.&amp;nbsp; Is it the tracking time window of 3 hours that is affecting the file being listed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 07:39:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/356365#M237266</guid>
      <dc:creator>Jagapriyan</dc:creator>
      <dc:date>2022-10-28T07:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Cron Schedule not working as expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/356704#M237353</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93831"&gt;@Jagapriyan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Since you are using the Listing Strategy "Tracking Timestamps", the configuration property "Entity Tracking Time Window" is not used.&amp;nbsp; The "Tracking Timestamps" strategy is very dependent on timestamps of the target files. Typically when files are not being picked up it is because the timestamps on those files are equal to or less than the last recorded timestamp in the ListSFTP processors state.&amp;nbsp; This can happen when files in the SFTP server target folders do not have their last modified timestamp updated (for example moving a file from another directory into a SFTP server directory. A copy would update the timestamp since the file is being written again).&lt;BR /&gt;&lt;BR /&gt;- Does your target SFTP path have multiple sub-directories which are being searched?&amp;nbsp; Is Search Recursively set to "true"?&amp;nbsp;&lt;BR /&gt;- Are there symlink directories in use?&lt;BR /&gt;- Have you looked the the state recorded timestamp for your SFTP server directories?&amp;nbsp; Are your missed files having older timestamps?&lt;BR /&gt;- How many files average are being written to the target SFTP between 12am and 1am each day?&lt;BR /&gt;&lt;BR /&gt;I also see you have min file age of 5 minutes. This means the last Modified timestamp must be 5 minutes older than the execution time of your processor for the file to be eligible for consumption.&amp;nbsp; &amp;nbsp;I see you stated your files are placed in the SFTP server between 12am - 1am each day and you scheduled your ListSFTP processor using a cron schedule at 10 minutes and 1 second every hour between 2am and 2pm.&amp;nbsp; &amp;nbsp;Why not just have your listSFTP processor run all the time?&amp;nbsp; Is this because timestamps are not being updated consistently?&lt;BR /&gt;&lt;BR /&gt;If you switch to using the listing strategy "Tracking Entities" instead, do you still see the issue? Tracking entities works when there is issues with timestamps and was developed for that reason.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:36:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/356704#M237353</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-11-01T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Cron Schedule not working as expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/357072#M237454</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;Please find my responses&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Does your target SFTP path have multiple sub-directories which are being searched?&amp;nbsp; Is Search Recursively set to "true"?&amp;nbsp; &amp;nbsp;--&amp;gt; Search recursively is set to true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Are there symlink directories in use? - No&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Have you looked the state recorded timestamp for your SFTP server directories?&amp;nbsp; Are your missed files having older timestamps? -- Missing files have older time stamps.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- How many files average are being written to the target SFTP between 12am and 1am each day? file count ranges from 10 - 100 and all these files are not being picked.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why not just have your listSFTP processor run all the time?&amp;nbsp; Is this because timestamps are not being updated consistently? Even running the processor all the time with cron schedule is not picking the files.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:05:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/357072#M237454</guid>
      <dc:creator>Jagapriyan</dc:creator>
      <dc:date>2022-11-07T09:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Cron Schedule not working as expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/357226#M237510</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93831"&gt;@Jagapriyan&lt;/a&gt;&amp;nbsp;I suspect issue with last modified timestamps since missed files have older last modified timestamp than what was already consumed from the target directory that is compounded by the sub-directory structure.&amp;nbsp; My recommendation is&amp;nbsp;&lt;SPAN&gt;switch to using the listing strategy "Tracking Entities" instead.&amp;nbsp;&lt;BR /&gt;Tracking Entities will keep track of filenames and timestamps so even an older timestamped file will get consumed if its filename is not in the tracked entities list stored in the distributed cache.&lt;BR /&gt;&lt;BR /&gt;Let me know is making this change resolves yoru issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 19:34:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/357226#M237510</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-11-08T19:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Cron Schedule not working as expected</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/357248#M237523</link>
      <description>&lt;P&gt;Thanks&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;This has solved the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 06:48:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Cron-Schedule-not-working-as-expected/m-p/357248#M237523</guid>
      <dc:creator>Jagapriyan</dc:creator>
      <dc:date>2022-11-09T06:48:17Z</dc:date>
    </item>
  </channel>
</rss>

