You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Jorge Machado <jo...@me.com> on 2018/02/22 08:19:35 UTC
Disconnect nifi node cluster via API
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
Posted by Jorge Machado <jo...@me.com>.
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 <ma...@gmail.com> 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 <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 <https://nifi.apache.org/download.html>.
>
> On Thu, Feb 22, 2018 at 8:12 AM, Charlie Meyer <charlie.meyer@civitaslearning.com <ma...@civitaslearning.com>> wrote:
> On https://nifi.apache.org/docs/nifi-docs/rest-api/index.html <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" <jomach@me.com <ma...@me.com>> 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
Posted by Matt Gilman <ma...@gmail.com>.
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.meyer@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" <jo...@me.com> 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
Posted by Charlie Meyer <ch...@civitaslearning.com>.
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" <jo...@me.com> 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