Re: Disconnect nifi node cluster via API

2018-02-22 Thread Jorge Machado
Hi Matt 
thanks for the reply, that’s is what I was looking into it ! 


Jorge Machado
mfg 





> On 22 Feb 2018, at 13:55, Matt Gilman  wrote:
> 
> Jorge,
> 
> A node must be disconnected before it can be removed. If you're looking to 
> invoke the REST endpoints, I would suggest looking at your browsers Dev Tools 
> to see the requests in action. Alternatively, you could use the 
> NodeManagerTool [1] that is bundled in the toolkit [2].
> 
> Matt
> 
> [1] 
> https://github.com/apache/nifi/blob/master/nifi-toolkit/nifi-toolkit-admin/src/main/groovy/org/apache/nifi/toolkit/admin/nodemanager/NodeManagerTool.groovy
>  
> 
> [2] https://nifi.apache.org/download.html 
> .
> 
> On Thu, Feb 22, 2018 at 8:12 AM, Charlie Meyer 
>  > wrote:
> On https://nifi.apache.org/docs/nifi-docs/rest-api/index.html 
>  take a look at 
> DELETE /controller/cluster/nodes/{id}
> 
> That might have what you need. 
> 
> -Charlie
> 
> On Feb 22, 2018 02:19, "Jorge Machado" > 
> wrote:
> Hi guys, 
> 
> is there an api to disconnect a node from the cluster ? This would be great 
> to securely automate a rolling restart. 
> 
> 
> Jorge
> 
> 
> 
> 
> 
> 
> 



Re: Disconnect nifi node cluster via API

2018-02-22 Thread Matt Gilman
Jorge,

A node must be disconnected before it can be removed. If you're looking to
invoke the REST endpoints, I would suggest looking at your browsers Dev
Tools to see the requests in action. Alternatively, you could use the
NodeManagerTool [1] that is bundled in the toolkit [2].

Matt

[1]
https://github.com/apache/nifi/blob/master/nifi-toolkit/nifi-toolkit-admin/src/main/groovy/org/apache/nifi/toolkit/admin/nodemanager/NodeManagerTool.groovy
[2] https://nifi.apache.org/download.html.

On Thu, Feb 22, 2018 at 8:12 AM, Charlie Meyer <
charlie.me...@civitaslearning.com> wrote:

> On https://nifi.apache.org/docs/nifi-docs/rest-api/index.html take a look
> at DELETE /controller/cluster/nodes/{id}
>
> That might have what you need.
>
> -Charlie
>
> On Feb 22, 2018 02:19, "Jorge Machado"  wrote:
>
> Hi guys,
>
> is there an api to disconnect a node from the cluster ? This would be
> great to securely automate a rolling restart.
>
>
> Jorge
>
>
>
>
>
>
>


Re: Disconnect nifi node cluster via API

2018-02-22 Thread Charlie Meyer
On https://nifi.apache.org/docs/nifi-docs/rest-api/index.html take a look
at DELETE /controller/cluster/nodes/{id}

That might have what you need.

-Charlie

On Feb 22, 2018 02:19, "Jorge Machado"  wrote:

Hi guys,

is there an api to disconnect a node from the cluster ? This would be great
to securely automate a rolling restart.


Jorge