Apache Ambari Administration
Also available as:
PDF
loading table of contents...

Chapter 9. Moving the ZooKeeper Server

To move the ZooKeeper server to a new host:

Steps

  1. In Ambari Web > Service Actions, stop the ZooKeeper server.

  2. In Ambari Web > Hosts, click the host on which you want to install the new ZooKeeper server.

  3. On the Summary page of the new ZooKeeper host, click Add > ZooKeeper Server

  4. 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. In Ambari Web > Hosts, click the original ZooKeeper server host.

  6. In ZooKeeper > Service Actions > Delete Service to delete the original ZooKeeper server.

  7. Save the HDFS namespace.

  8. Restart the new ZooKeeper server and the Hive service.

[Note]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:

  • 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

Next Steps

Review and confirm all recommended configuration changes.

More Information

Review and Confirm Configuration Changes