Skip to content
Published on

How to Build Apache Zookeeper (Ubuntu 22.04)

Authors
  • Name
    Twitter

Overview

Learn how to build Apache Zookeeper on Ubuntu.

Build Preparation (Ubuntu)

sudo apt-get install libcppunit-dev
sudo apt-get install python-setuptools python2.7-dev
sudo apt-get install openssl libssl-dev
sudo apt-get install libsasl2-modules-gssapi-mit libsasl2-modules libsasl2-dev

Build Zookeeper

git clone https://github.com/apache/zookeeper.git
cd zookeeper
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64  mvn clean install -DskipTests

Zookeeper Check

In the zookeeper/zookeeper-assembly/target folder, you can find the tar.gz file, which is the build artifact from the Zookeeper source.

zookeeper/zookeeper-assembly/target
zookeeper/zookeeper-assembly/target$ ls
antrun  apache-zookeeper-3.9.0-SNAPSHOT-bin.tar.gz  apache-zookeeper-3.9.0-SNAPSHOT-bin.tar.gz.sha512  archive-tmp