This procedure describes how to install and configure the Apache Zookeeper component for use with the meshIQ Platform.
- Download the latest version of the Zookeeper component
Apache ZooKeeper-3.9.5-bin.tar.gzfrom https://zookeeper.apache.org/releases.html and place the file in$APIN_HOME/zookeeper.
or
Use the Zookeeper setup provided with the Deployment Pack.
-
Extract the downloaded package using the following command:
tar -zxvf apache-zookeeper-3.9.5-bin.tar.gz
- A new Zookeeper installation directory (zookeeper-3.9.5) is created. This directory will be used as the active zookeeper version.
-
Link the latest version as the current version using the following command:
ln-s Zookeeper-3.9.5 current
-
Create a Data Directory folder using the following command:
mkdir dataDir
- By default, the configuration file is named
zoo_sample.conf. Rename the file tozoo.conf. - Edit the
zoo.conffile located in$APIN_HOME/zookeeper/zookeeper-3.9.5/conf/and update the configuration properties. Click here to view Zookeeper configuration settings:
Add or verify the following properties
# The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=10 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5 # the directory where the snapshot is stored. # do not use /tmp for storage, /tmp here is just # example sakes. dataDir=../dataDir # the port at which the clients will connect clientPort=2181 # the maximum number of client connections. # increase this if you need to handle more clients #maxClientCnxns=60 # # Be sure to read the maintenance section of the # administrator guide before turning on autopurge. # # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance # # The number of snapshots to retain in dataDir autopurge.snapRetainCount=7 # Purge task interval in hours # Set to "0" to disable auto purge feature autopurge.purgeInterval=7 ## Metrics Providers # # https://prometheus.io Metrics Exporter #metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider #metricsProvider.httpPort=7000 #metricsProvider.exportJvmInfo=true admin.serverPort=8181 admin.enableServer=false 4lw.commands.whitelist=mntr,conf,ruok ~ ~ ~ ~ ~ ~ ~ "zoo.cfg" 41L, 1229B
-
Make sure
admin.enableServer=false in configuration