Support Questions

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

FetchFile x Windows

avatar
Contributor

Good afternoon,

 

Is there a way to use the FetchFile 1.16.2 processor to access files from Windows when the Nifi application is on Linux?

16 REPLIES 16

avatar
Contributor

yep, use default port and localhost as a hostname, also don't  forget to start a cache server on the same port

avatar
Contributor

@stanere 

 

Do I need to create some kind of service on the Linux server where Nifi is running for this before?

avatar
Contributor

no, just another controller as shown at >Use default configs for these two controllers, at first it should be enough

it'll work as a server by itself

avatar
Contributor

@stanere 

 

I did not understand it.

avatar
Contributor

There should be two controllers configured:

 

DistributedMapCacheClientService

cache_client.png

DistributedMapCacheServer

cache_server.png

Client is, eh, client, server is a backend for your cache.

Without server client has nowhere to send a flowfile.

avatar

Hi,

I dont think it matters which system the path is located as long you have access to it. Do you have access to the path \\10.1.1.35\nifi from the machine where nifi is deployed? I'm not Linux expert but you need to test if the path with the file name is accessible by doing some system command or trying to access via file explorer.

 

avatar
Contributor

@SAMSAL 

 

I can connect to the Windows directory both from another windows machine and from this linux machine that I'm using Nifi, but I'm not able to use the FetchFile processor, it throws the POST error.