You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Kevin Verhoeven <Ke...@ds-iq.com> on 2016/06/24 17:31:29 UTC

PutFile write to windows share fails - 0.7 snapshot on Linux server

I am running NiFi 0.7 snapshot on a Linux server and I am unable to use the PutFile Processor to write a file to a Windows file share, for example: \\servername\sharename<file:///\\servername\sharename>. The PutFile Processor does not log a failure and instead moves down the success path. Is this a known issue or could I have a misconfiguration somewhere? When I run NiFi on Windows I am able to write files to the file share. Any help would be appreciated.

Thanks,

Kevin

Re: PutFile write to windows share fails - 0.7 snapshot on Linux server

Posted by James Wing <jv...@gmail.com>.
Kevin,

I was able to reproduce this from your description, and what I found was
that the path "\\servername\sharename" is interpreted as a local relative
path and my NiFi wrote the file to local disk under
${NIFI_HOME}/\\servername\sharename/samplefile.  That is why PutFile
succeeds.

Can you access the share from Linux server command line?  I don't know how
the share is mounted or configured, you may have to mount the share to the
local file system and use the resulting local path.

Thanks,

James

On Fri, Jun 24, 2016 at 10:31 AM, Kevin Verhoeven <Kevin.Verhoeven@ds-iq.com
> wrote:

> I am running NiFi 0.7 snapshot on a Linux server and I am unable to use
> the PutFile Processor to write a file to a Windows file share, for example:
> \\servername\sharename. The PutFile Processor does not log a failure and
> instead moves down the success path. Is this a known issue or could I have
> a misconfiguration somewhere? When I run NiFi on Windows I am able to write
> files to the file share. Any help would be appreciated.
>
>
>
> Thanks,
>
>
>
> Kevin
>