Created 09-29-2022 05:49 AM
Good Morning
I'm trying to access an address of another Linux server through Nifi that is also installed on a Linux server, to search for files.
I'm trying to use the FetchFile Processor for this but I'm not getting the error "Routing to not found".
Could you help me how to make this connection between one server and another?
Created 10-03-2022 05:54 AM
@leandrolinof
I see no reason why using UpdateAttribute to establish the needed path and filename values for FetchSFTP processor would not work. FetchSFTP has no dependency on using ListSFTP. ListSFP just serves as a mechanism for obtaining a list of Files from a target SFTp server and recording state. ListSFTP simply creates a FlowFile with the needed attributes set for each File found on the target. So if you have another method build that can get set those attributes, then you are good to go.
If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.
Thank you,
Matt
Created 09-30-2022 09:31 AM
FetchFile is going to look for the file on the nifi node or nifi nodes where nifi is installed. This is usually something done on the primary node of a multi node nifi cluster.
If you want to connect to another linux server, not part of the nifi cluster you will have to take a different approach. One such approach could be using minifi, or possible ExecuteScript to run a linux command from nifi node to other linux server.
Created 09-30-2022 02:13 PM
@leandrolinof
ListSFTP and FetchSFTP are commonly used to fetch files from a remote server. In order to use ListFile or FetchFile the location remote directory would need to be mounted as a local file directory.
Matt
Created 10-03-2022 05:12 AM
I'm trying this way.
With an UpdateAttribute processor and right after FetchSFTP
I'm trying this way because I need to run Oracle QUERY previously and do some validations
Can it work?
Created 10-03-2022 05:54 AM
@leandrolinof
I see no reason why using UpdateAttribute to establish the needed path and filename values for FetchSFTP processor would not work. FetchSFTP has no dependency on using ListSFTP. ListSFP just serves as a mechanism for obtaining a list of Files from a target SFTp server and recording state. ListSFTP simply creates a FlowFile with the needed attributes set for each File found on the target. So if you have another method build that can get set those attributes, then you are good to go.
If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.
Thank you,
Matt
Created 10-07-2022 07:51 AM
Thank you very much, this worked perfectly for what I was needing.
Can you tell me if this same flow also works with windows?