Created 02-06-2023 05:55 AM
I am having a simple flow where I am fetching the creds for SFTP from DB and then uploading a file using the putSFTP but I am getting UnknownHostException error on PutSFTP processor.
I see the creds are being fetched - I see them in logs and also tried connecting to the Server using FileZilla (creds are correct ..no space etc all good with that)..
Also I tried hardcoding the creds in PutSFTP and still it did not work.
can someone please guide me..
Created 02-09-2023 12:59 PM
@hkh Based on RFC1123, the use of ": or /" in a hostname is not valid.
https://www.rfc-editor.org/rfc/rfc1123
From command line on the server where NiFi is running as the user who owns the NiFi running process, can you "ssh <username>@myhostname://test.net" successfully?
So I am still a bit confused on you having an SFTP-server running on a server with a hostname containing these characters. It may very well be that these invalid characters re resulting in the unknownHostException coming out of the Java SSH library used by the NiFi putSFTP processor.
As far as an alternative to putSFTP, that would require knowing more about your endpoint you are trying to write to in order to provide such suggestions.
Thank you,
Matt
Created on 02-07-2023 11:37 AM - edited 02-07-2023 11:38 AM
Is there any alternative to putSFTP?
Created 02-09-2023 02:34 PM
Thank you Matt 🙂