Member since
07-20-2017
15
Posts
0
Kudos Received
0
Solutions
10-25-2017
06:09 PM
@Bilel Boubakri, I've tested your use case with getSFTP processor, it worked as expected with given regex (skipped MATFIC dir with all the files in it). I cannot test specifically GetFTP, as we don't have FTP servers running, but I'm sure it should give the same result. Tested with NiFi 1.1.0.2.1.1.0-2. Some suggestions: 1. if you copy-pasted your regex - make sure you don't have new line character 2. make sure your regex is in Path Filter Regex and not in File Filter Regex property 3. If 1 and 2 don't help, try to dance with tambourine and call Cthulhu Hope, that will help!
... View more
10-23-2017
01:03 PM
you can try to include updateAttribute and modify particular variable in runtime. If that needs to be permanent for all flowfiles, update in nifi.properties--> nifi.variable.registry.properties (example: create custom.properties and add custom variables) and restart as suggested by @Mattclarke
... View more
10-20-2017
04:34 PM
2 Kudos
@Bilel Boubakri The same concept applies for sending from NiFi to MiNiFi. The RPG can be used to push Flowfiles (as shown in the above screenshots), but can also be used to pull FlowFiles from a Remote Output port. Thanks, Matt
... View more
07-27-2017
09:09 PM
@Bilel Boubakri I am assuming you know how many subdirectories there are in this solution. ListFTP - scanning the main directory with all the subdirectories EexcutScript - running a groovy script waiting for all of the flag.ok files to be in the subdirectories FetchFTP - configured to pull the wanted files Here is a snapshot of the simple flow: Here is the sample groovy script for the ExecuteScript processor, configured for this example to wait for 5 files: def flowFiles = session.get(5)
if(!flowFiles || flowFiles.size() < 5) {
session.rollback()
} else {
session.transfer(flowFiles, REL_SUCCESS)
}
waiting-for-5-files-before-ftping-the-files.xml Here is a template of the sample flow
... View more