Move the ZooKeeper server
To move the ZooKeeper server to a new host:
- In Ambari Web > Services, click ZooKeeper.
-
Click Actions > Stop.
All ZooKeeper servers stop.
- 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 Components, for the ZooKeeper Master component, click Actions > Delete Service to delete the original ZooKeeper server.
- Save the HDFS namespace.
-
Restart the new ZooKeeper server and the Hive service.
NoteIn 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:
- atlas.graph.index.search.solr.zookeeper-url
Example format:
host1:2181/infra-solr,host2:2181/infra-solr,host3:2181/infra-solr
- atlas.kafka.zookeeper.connect
Example format:
host1:2181,host2:2181,host3:2181
- atlas.audit.hbase.zookeeper.quorum
Example format:
host1,host2,host3
After updating these properties (to refresh the configuration files), restart Atlas and the following services that contain Atlas hooks :
- Hive
- Storm
- Falcon
- Sqoop
- atlas.graph.index.search.solr.zookeeper-url