Administering Ambari
Also available as:
PDF
loading table of contents...

Move the ZooKeeper server

To move the ZooKeeper server to a new host:

  1. In Ambari Web > Services, click ZooKeeper.
  2. Click Actions > Stop.
    All ZooKeeper servers stop.
  3. In Ambari Web > Hosts, click the host on which you want to install the new ZooKeeper server.
  4. On the Summary page of the new ZooKeeper host, click +Add > ZooKeeper Server.
  5. 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
  6. In Ambari Web > Hosts, click the original ZooKeeper server host.
  7. In Components, for the ZooKeeper Master component, click Actions > Delete Service to delete the original ZooKeeper server.
  8. Save the HDFS namespace.
  9. 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
Review and confirm all recommended configuration changes.