Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How can we get or read file from a remote windows server

avatar
Rising Star

I have a usecase, where i have to read file from the remote windows server, my NiFi is deployed on linux machine and I have tried to use GetSFTP, FetchSFTP and ExecuteProcess but didn't able to even reach the server. 

1 REPLY 1

avatar
Master Mentor

@samrathal 
Is your Windows server hosting a SFTP server that you can connect to?  If not, I'd expect GetSFTP/FetchSFTP to fail to connect.   If you can't reach your Windows file from command line on the server where NiFi resides, you are not going to be able to reach via a NiFi dataflow.

1. Setting up a windows share that you mount to your linux box would allow you to use ListFile and FetchFile processors.
2. Setting up an SFTP server on your Windows server would allow you to use ListSFTP and FetchSFTP processors.
3. Setting up SMB on your Windows server would allow you to use the ListSMB and FetchSMB processors.

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