Created on 06-27-2019 11:18 PM - edited 08-17-2019 02:47 PM
I would be passing attribute to fetchfile processor to fetch file names that match my criteria
Attribute from previous processor: ps_address.txt
File to be fetched: SSMP_XXCY_PS_ADDRESS_2019_06_27.txt
May I know how to pass parameter to fetch file so that this gets picked up? I tried entering * as pattern match but it didn't work. any suggestions please?
Thanks,
Khaja
Created 06-28-2019 03:09 AM
@Shu : In my case, I cant use listfile+fetchfile as mentioned above. I have to get part of file name and pass that to fetchfile. is it possible to fetch as I mentioned in my initial thread
Created 06-28-2019 09:32 AM
Use GetFile processor as this processor allows to keep specific patterns.
Refer this link for configuring GetFile processor to use with File Filter patterns.
Created 06-28-2019 02:22 PM
Thanks Shu. I was not successful with that in my scenario. Here is my flow. Get file names first from list of files and then pass that filenames with pattern match to next flow . GetFile(Where file names are present) --> Extract Text(Retreive Filenames. Used Attributes with delimiter to get filenames)--> Pass it to Next Processor . Cannot connect ExtractText to GetFIle so tried FetchFile but stuck with pattern match.
Created 06-30-2019 09:11 PM
The above question and the entire response thread below was originally posted in the Community Help track. On Sun Jun 30 21:03 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself, not technical questions about Nifi processors.