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

Chapter 6. Moving the ZooKeeper Server

Use the following steps so move the ZooKeeper server to a new host:

  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. 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 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, restart Atlas and the following services that contain Atlas hooks (in order to refresh the configuration files):

  • Hive

  • Storm

  • Falcon

  • Sqoop