Setting up Zookeeper

Modify the default settings for Zookeeper from Ambari web UI.

About this task

Zookeeper requires a majority. It is best to use an odd number of nodes in your cluster. For example, with four Network Performance Insight® nodes, ZooKeeper can handle the failure of a single machine; if two systems fail, the remaining two Network Performance Insight nodes do not constitute a majority. However, with five Network Performance Insight nodes, ZooKeeper can handle the failure of two Network Performance Insight nodes.
If a Network Performance Insight node is removed or added to your cluster, the conf/application.conf file in the UI Service is automatically updated to reflect the correct number of host names with the ZooKeeper Service in the following lines:
  • main.zk-url=<host name1>,<host name2>,<host name3>
  • messaging.kafka.zk-connect=<host name1>,<host name2>,<host name3>

Procedure

  1. Click Zookeeper > Zookeeper Server.
  2. Update the value of ZooKeeper directory field as per your environment.
    By default, Ambari might decide on a default directory with sufficient space. For example, /<data1>/hadoop/zookeeper.
    Note: Do not set the ZooKeeper directory in /tmp directory.