You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by 진유리 <yu...@gmail.com> on 2017/06/20 04:39:41 UTC

'GetFile' Processor Validation

I have clustered NiFi v1.0.0 on 2 nodes.

I added 'GetFile' processor and set scheduling strategy to 'On primary
node'.
On primary node, input directory exists but on another node, input
directory does not exist.
So I got error message like "'node2 : Input Directory' validated against
'/var/test/' is invalid because Directory does not exist"

I guess 'GetFile' processor check both node regardless of the scheduling
strategy.
Does it make a sense?

I think it is not necessary to check all node when I set scheduling
strategy to 'On primary node'.


Thanks
-Yuri Jin-

Re: 'GetFile' Processor Validation

Posted by Pierre Villard <pi...@gmail.com>.
Hi,

There is no way to ensure that the primary node will always be a given
node. In case of failover or in case of restart, the primary node will
likely be a different node. That's why the validation is occurring on all
the nodes and that's why we recommend that all NiFi nodes are the same.

Hope this helps,
Pierre

2017-06-20 6:39 GMT+02:00 진유리 <yu...@gmail.com>:

> I have clustered NiFi v1.0.0 on 2 nodes.
>
> I added 'GetFile' processor and set scheduling strategy to 'On primary
> node'.
> On primary node, input directory exists but on another node, input
> directory does not exist.
> So I got error message like "'node2 : Input Directory' validated against
> '/var/test/' is invalid because Directory does not exist"
>
> I guess 'GetFile' processor check both node regardless of the scheduling
> strategy.
> Does it make a sense?
>
> I think it is not necessary to check all node when I set scheduling
> strategy to 'On primary node'.
>
>
> Thanks
> -Yuri Jin-
>