Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Need to Remove one node from nifi cluster

avatar
Explorer

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 

1 REPLY 1

avatar

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.