You could set the permissions on the unmounted folder where NiFi can't write to 
them since the permissions when mounted come from the NFS share.

For example assume we're mounting to /mnt/nifi_dropoff, before mounting to that 
mount point create the directory set the permissions to 555 or something but 
after mounting set it to 755 or whatever permissions you want. Then you'll get 
a permission denied if the folder isn't mounted.

Thanks
Shawn

-----Original Message-----
From: Eduardo Fontes <eduardo.fon...@gmail.com> 
Sent: Thursday, May 13, 2021 5:12 AM
To: dev@nifi.apache.org
Subject: Re: PutFile to mounted directory

Hi,

You can use PutSMBFile if it is a Cifs/Smb/Windows share.

If it is a NFS share, the only way is to mount the share on the nifi nodes.

Regards,

Eduardo Fontes

Em qui., 13 de mai. de 2021 01:11, Phil H <gippyp...@gmail.com> escreveu:

> Hi there,
>
> I want to use PutFile write some flow files out to a network drive on 
> my Unix system, but fail if the disk is not mounted. I can’t see any 
> way to do this - any ideas?
>
> Cheers,
> Phil
>

Reply via email to