Chapter 6. Moving the Zookeeper Server
Use the following steps so move the Zookeeper server to a new host:
Stop the Zookeeper server.
Select Hosts on the Ambari dashboard, then select the host on which to install the new Zookeeper server.
On the Summary page of the new Zookeeper host, select Add > Zookeeper Server and add the new 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
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.
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, restart Atlas and the following services that contain Atlas hooks (in order to refresh the configuration files):
|