- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Need to Remove one node from nifi cluster
- Labels:
-
Apache NiFi
Created 03-30-2023 05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to remove a node from cluster and inside the cluster all node's need to updated with removed node ,
example : i have a cluster with 4 nodes
node -1 , 2 [ Primary ], 3 , 4
i want to remove node -3 from cluster , and it should be updated automatically in [ authorizers.xml ] to remaining working nodes.
please help its bit urgent
Created 03-30-2023 08:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi @Sivagopal,
As far as I know, what you are asking is not possible directly from within NiFi.
To remove the node from the cluster you have two options:
- the manual remove, done from the Menu - Cluster - Nodes --> disconnect Node. ( see https://docs.cloudera.com/HDPDocuments/HDF3/HDF-3.5.1/nifi-configuration-best-practices/content/disc...)
- the NiFi's REST API. For that you will need to use the Controller commands, select the DELETE option and perform the call --> /controller/cluster/nodes/{id}. (see https://nifi.apache.org/docs/nifi-docs/rest-api/index.html --> Controller Section / DELETE)
As for the update in authorizers.xml, you will need to write a script which will perform this action, while NiFi is down. As far as I know, these XML Files get initialized when NiFi starts so even though you perform some actions while NiFi is up and running, these changes will not get taken into considerations. Take note that if you are using the embedded zookeeper, you will have to modify the zookeeper.properties file as well. In addition to these files, you have to take a look to state-management.xml as well.
![](/skins/images/C3EF05C688F0C29C1D3298241F61C2B3/responsive_peak/images/icon_anonymous_message.png)