- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Clean up unreachable zookeeper server
- Labels:
-
Apache Ambari
Created ‎10-03-2017 04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all!
We had an HDF cluster with 6 servers. We accedentally removed servers for OS reinstallation where we had zookeeper servers installed. Now the zookeeper is broken and we cannot use nifi either.
Can you please help us remove the remainings of old servers from zookeeper's configurations and move it to remaining 3 servers.
thanks in advance!
Created ‎10-03-2017 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To remove the zookeeper service from the cluster, the simple method is to use the REST API and have the zookeeper service restarted.
Command to remove the service:
curl -i -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<ambari-Server>:<ambari-port>/api/v1/clusters/<cluster-name>/hosts/<fully_qualified_host_name...
I presume, at least other hosts are alive in zookeeper quorum(to retain the data).
On the other Note, it is always good to have odd number of zookeeper nodes in cluster, hence you can add a new zookeeper server by doing
Go to Hosts in Ambari -> select the new node to be installed with zookeeper Server -> click on Components Add+ -> select Zookeeper Server and install.(same for ZOOKEEPER_CLIENT)
Hope this helps!
Created ‎10-03-2017 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To remove the zookeeper service from the cluster, the simple method is to use the REST API and have the zookeeper service restarted.
Command to remove the service:
curl -i -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<ambari-Server>:<ambari-port>/api/v1/clusters/<cluster-name>/hosts/<fully_qualified_host_name...
I presume, at least other hosts are alive in zookeeper quorum(to retain the data).
On the other Note, it is always good to have odd number of zookeeper nodes in cluster, hence you can add a new zookeeper server by doing
Go to Hosts in Ambari -> select the new node to be installed with zookeeper Server -> click on Components Add+ -> select Zookeeper Server and install.(same for ZOOKEEPER_CLIENT)
Hope this helps!
Created ‎10-03-2017 06:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @bkosaraju!!
Thank you very much!
It helped!
We managed to remove zookeeper server from unreachable server!
Many thanks for your help and quick reply!! 🙂 You made our day! 🙂
Created ‎10-03-2017 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To remove the zookeeper service from the cluster, the simple method is to use the REST API and have the zookeeper service restarted.
Command to remove the service:
curl -i -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<ambari-Server>:<ambari-port>/api/v1/clusters/<cluster-name>/hosts/<fully_qualified_host_name...
I presume, at least other hosts are alive in zookeeper quorum(to retain the data).
On the other Note, it is always good to have odd number of zookeeper nodes in cluster, hence you can add a new zookeeper server by doing
Go to Hosts in Ambari -> select the new node to be installed with zookeeper Server -> click on Components Add+ -> select Zookeeper Server and install.(same for ZOOKEEPER_CLIENT)
Hope this helps!
