Support Questions
Find answers, ask questions, and share your expertise

What are the steps for moving a zookeeper server?

Solved Go to solution

Re: What are the steps for moving a zookeeper server?

Super Collaborator

Thanks.

FYI - there's an extra space character in "- i" on both of the curl commands

Re: What are the steps for moving a zookeeper server?

Expert Contributor

I know it's already closed, but just to want share the steps on how to transfer/add zookeeper to another hosts.

  1. Stop the Zookeeper server.
  2. Select Hosts on the Ambari dashboard, then select the host on which to install the new Zookeeper server.
  3. On the Summary page of the new Zookeeper host, select Add > Zookeeper Server and add the new Zookeeper server.
  4. Double check and update the following properties on the new Zookeeper server (use the existing Zookeeper server settings as a reference).
    • ha.zookeeper.quorum
    • hbase.zookeeper.quorum
    • templeton.zookeeper.hosts
    • yarn.resourcemanager.zk-address
    • hive.zookeeper.quorum
    • hive.cluster.delegation.token.store.zookeeper.connectString
  5. Select Hosts on the Ambari dashboard, then select the original Zookeeper server host. Select Zookeeper > Service Actions > Delete Service to delete the original Zookeeper server.
  6. Save the HDFS namespace.
  7. Restart the new Zookeeper server and other services affected.

https://community.hortonworks.com/articles/48943/how-to-move-the-zookeeper-server-to-another-host-a.... (thanks to @jkuang

https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-reference/content/ch_amb_ref_movi...

Re: What are the steps for moving a zookeeper server?

Explorer

Hello @Michael Dennis "MD" Uanang

can you confirm that this worked on a 3-nodes Zookeeper install? I mean, I need to move my zk cluster from the original 3 hosts to other 3 hosts, will this work repeating 3 times the same procedure?