Re: PutFile to mounted directory

2021-05-13 Thread Phil H
Thanks Shawn and Eduardo - two great ideas to pursue!

Cheers,
Phil

On Thu, 13 May 2021 at 22:45, Shawn Weeks  wrote:

> 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 
> 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  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
> >
>


RE: PutFile to mounted directory

2021-05-13 Thread Shawn Weeks
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  
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  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
>


Re: PutFile to mounted directory

2021-05-13 Thread Eduardo Fontes
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  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
>


PutFile to mounted directory

2021-05-12 Thread Phil H
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