Skip to main content
Lallagreta
Silver ⭐️⭐️
March 8, 2021
Solved

Nifi load file from Virtual machine azure

Hi @Nifi !

I created a flow in local nifi, now i ve to do the deployment in virtual machine azure.

I use docker compose to do that and it works but the ListFile processor to ingest the file doesn't accept the directory path of virtual machine.

I insert the path that i find from virtual machine terminal (with the command pwd) but doesn't work.

How can i ingest the file that i ve load on virtual machine?

thanks 

ckumar
ckumarAnswer
Platinum ⭐️
March 8, 2021

Thank you for your response.

ListFile will read from local file system directory but in this case if local file system directory is on VM host on which docker container is running then very 1st setup would be to make that local file mount/dir to accessible by docker container as storage mount/dir using bind mount for read/write.

 

 

 

4 replies

ckumar
Platinum ⭐️
Platinum ⭐️
March 8, 2021

Can we confirm if directory which used for ListFile: Input Directory property is mounted to docker container which is running NiFi application ? ref : https://docs.docker.com/storage/bind-mounts/

Translate
Lallagreta
Silver ⭐️⭐️
March 8, 2021

No.. it's on virtual machine and not included into dockerfile of docker-compose.yml

Translate
ckumar
Platinum ⭐️
ckumarAnswer
Platinum ⭐️
March 8, 2021

Thank you for your response.

ListFile will read from local file system directory but in this case if local file system directory is on VM host on which docker container is running then very 1st setup would be to make that local file mount/dir to accessible by docker container as storage mount/dir using bind mount for read/write.

 

 

 

Translate