← Back to Post
Split View: apache Zookeeper Build 방법 (Ubuntu 22.04)
|
apache Zookeeper Build 방법 (Ubuntu 22.04)
Overview
apache Zookeeper 를 ubuntu에서 Build하는 방법을 알아본다.
build 준비 (ubunut)
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
zookeeper/zookeeper-assembly/target 폴더에 보면, zookeeper 소스를 빌드하여 나온 결과물인 tar.gz 파일을 확인할 수 있다.
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
How to Build Apache Zookeeper (Ubuntu 22.04)
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
Quiz
Q1: What is the main topic covered in "How to Build Apache Zookeeper (Ubuntu 22.04)"?
Learn how to build Apache Zookeeper on Ubuntu 22.04.
Q2: What are the key takeaways from this article?
Learn how to build Apache Zookeeper on Ubuntu 22.04.
Q3: How can the concepts in this article be applied in practice?
Consider the practical examples and patterns discussed throughout the post.