-
Notifications
You must be signed in to change notification settings - Fork 56
Building Apache ZooKeeper
Below versions of Apache ZooKeeper are available in respective distributions at the time of creation of these instructions:
- Ubuntu 16.04 has
3.4.8 - Ubuntu 18.04 has
3.4.10 - Ubuntu 20.04 has
3.4.13
-
When following the steps below please use a standard permission user unless otherwise specified.
-
A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
Apache ZooKeeper binaries are available and can be downloaded from here. To use these binaries, different Java flavors can be installed on mentioned distributions.
-
RHEL (7.6, 7.7, 7.8, 8.1, 8.2)
sudo yum install -y java-11-openjdk
-
SLES (12 SP5, 15 SP1)
sudo zypper install -y java-11-openjdk-devel
-
SLES 12 SP4 and Ubuntu 16.04
- Download and install AdoptOpenJDK 11 with OpenJ9 from here.
-
Ubuntu (18.04, 20.04)
sudo apt-get update sudo apt-get install -y openjdk-11-jre
export JAVA_HOME=<Path to Java>
export PATH=$JAVA_HOME/bin:$PATHTo start the server, extract binary tar to /<source_root>/ and follow steps given below.
cd /<source_root>/<apache_zookeeper_binary_folder>/
mv conf/zoo_sample.cfg conf/zoo.cfg
bin/zkServer.sh start
bin/zkCli.shNote:
- If encountering error message 'Starting zookeeper ... FAILED TO START', please check whether 'ps' command is enabled in bash.
- User can rename existing sample config file or create their own zoo.cfg.
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.