- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Input Port to ListFile/GetFile/FetchFile Processor
- Labels:
-
Apache NiFi
Created 05-29-2019 11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I have a flow which reads certain parameters and decide if it is a database ingestion or file ingestion. DB ingestions are working fine but for file ingestions i am not able to connect the flow with FetchFile/GetFile/List file processors Looks like these processors does not allow input port to connect. Is there any way or processor to get this done...? My File Ingestion templates is designed to take the input from different folders/files based on input parameters from outerflow.
Created 05-30-2019 01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FetchFile processor accepts incoming connections but we need to pass fully qualified filename to this processor to fetch files from the directory.
To get fully qualified filename we need to use ExecuteStreamCommand processor to run shell commands.
Refer to this link i have given in detailed answer how to get fully qualified name in middle of the flow.
Let us know if you have any issues..!!
Created 05-30-2019 01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FetchFile processor accepts incoming connections but we need to pass fully qualified filename to this processor to fetch files from the directory.
To get fully qualified filename we need to use ExecuteStreamCommand processor to run shell commands.
Refer to this link i have given in detailed answer how to get fully qualified name in middle of the flow.
Let us know if you have any issues..!!
Created 06-12-2019 10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@shu, Thanks for the solution. It worked for me.
