Member since
10-31-2022
4
Posts
0
Kudos Received
0
Solutions
11-06-2022
10:50 PM
I applied "0 5 8 ? * * *" this on cron and still the same. It worked for 2 days and 3rd day again it didn't work.
... View more
11-06-2022
10:49 PM
@MattWho @Faerballert As per the given explanation i tried your solution that is i modified the cron to "0 5 8 ? * * *" but again. It worked for 2 days and then today again it didn't work.
... View more
11-03-2022
11:17 PM
Dear Matt, I'm reading the file from the folder NAS-Dev its just a folder in D drive it's not actually NAS location. I have ensured that the file is present at the location everyday. Regards Bridewin
... View more
10-31-2022
07:01 AM
I have a NiFi flow that reads file from local drive and writes in another folder. But due to some reason it is not reading files on regular basis. I can't find anything on the log. The log file is printed as if nothing was scheduled for that particular time. It's simply skipping the timing and continuing. I'm using Apache NiFi version 1.11.4 Screenshot of the Flow. Screenshot of Scheduling tab Screenshot of the GetFile Processor Scheduling tab. I have scheduled it for 08:05 on daily basis. Screenshot of properties tab Screenshot of GetFile Processor Properties tab. This NiFi is hosted on Windows 2012 server and this problem is only occurring in production environment. Although all the configuration is same in all the environment. I'm also attaching the sample flow template in case if anyone want to try it out. Sample_flow.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.3">
<description>sample_flow</description>
<groupId>43743f1b-d683-1c4a-9aa3-f3ccafb344b7</groupId>
<name>sample_flow</name>
<snippet>
<processors>
<id>26792e99-d010-34b2-0000-000000000000</id>
<parentGroupId>8ffe175c-fbc5-3eb9-0000-000000000000</parentGroupId>
<position>
<x>0.0</x>
<y>0.0</y>
</position>
<bundle>
<artifact>nifi-standard-nar</artifact>
<group>org.apache.nifi</group>
<version>1.11.4</version>
</bundle>
<config>
<bulletinLevel>WARN</bulletinLevel>
<comments></comments>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<descriptors>
<entry>
<key>Input Directory</key>
<value>
<name>Input Directory</name>
</value>
</entry>
<entry>
<key>File Filter</key>
<value>
<name>File Filter</name>
</value>
</entry>
<entry>
<key>Path Filter</key>
<value>
<name>Path Filter</name>
</value>
</entry>
<entry>
<key>Batch Size</key>
<value>
<name>Batch Size</name>
</value>
</entry>
<entry>
<key>Keep Source File</key>
<value>
<name>Keep Source File</name>
</value>
</entry>
<entry>
<key>Recurse Subdirectories</key>
<value>
<name>Recurse Subdirectories</name>
</value>
</entry>
<entry>
<key>Polling Interval</key>
<value>
<name>Polling Interval</name>
</value>
</entry>
<entry>
<key>Ignore Hidden Files</key>
<value>
<name>Ignore Hidden Files</name>
</value>
</entry>
<entry>
<key>Minimum File Age</key>
<value>
<name>Minimum File Age</name>
</value>
</entry>
<entry>
<key>Maximum File Age</key>
<value>
<name>Maximum File Age</name>
</value>
</entry>
<entry>
<key>Minimum File Size</key>
<value>
<name>Minimum File Size</name>
</value>
</entry>
<entry>
<key>Maximum File Size</key>
<value>
<name>Maximum File Size</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>Input Directory</key>
<value>D:\NiFi-Dev\NAS\Source4</value>
</entry>
<entry>
<key>File Filter</key>
<value>(?i)^(SAMPLE_FILE.TXT)$</value>
</entry>
<entry>
<key>Path Filter</key>
</entry>
<entry>
<key>Batch Size</key>
<value>10</value>
</entry>
<entry>
<key>Keep Source File</key>
<value>false</value>
</entry>
<entry>
<key>Recurse Subdirectories</key>
<value>true</value>
</entry>
<entry>
<key>Polling Interval</key>
<value>0 sec</value>
</entry>
<entry>
<key>Ignore Hidden Files</key>
<value>true</value>
</entry>
<entry>
<key>Minimum File Age</key>
<value>0 sec</value>
</entry>
<entry>
<key>Maximum File Age</key>
</entry>
<entry>
<key>Minimum File Size</key>
<value>0 B</value>
</entry>
<entry>
<key>Maximum File Size</key>
</entry>
</properties>
<runDurationMillis>0</runDurationMillis>
<schedulingPeriod>0 05 8 1/1 * ? *</schedulingPeriod>
<schedulingStrategy>CRON_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>Read_NAS_File</name>
<relationships>
<autoTerminate>false</autoTerminate>
<name>success</name>
</relationships>
<state>RUNNING</state>
<style/>
<type>org.apache.nifi.processors.standard.GetFile</type>
</processors>
</snippet>
<timestamp>10/31/2022 19:02:29 IST</timestamp>
</template>
... View more
Labels:
- Labels:
-
Apache NiFi