Chapter 9. Moving the ZooKeeper Server
To move the ZooKeeper server to a new host:
Steps
In Ambari Web > Service Actions, stop the ZooKeeper server.
In Ambari Web > Hosts, click the host on which you want to install the new ZooKeeper server.
On the Summary page of the new ZooKeeper host, click Add > ZooKeeper Server
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
In Ambari Web > Hosts, click the original ZooKeeper server host.
In ZooKeeper > Service Actions > Delete Service to delete the original ZooKeeper server.
Save the HDFS namespace.
Restart the new ZooKeeper server and the Hive service.
Note | |
---|---|
In Ambari 2.4.0.0, adding or removing ZooKeeper servers requires manually editing the following Atlas properties. Select Atlas > Configs > Advanced, then select Advanced application-properties and edit the following properties to reflect the new ZooKeeper server settings:
After updating these properties (to refresh the configuration files), restart Atlas and the following services that contain Atlas hooks :
|
Next Steps
Review and confirm all recommended configuration changes.
More Information