Skip to content
Published on

How to Build HBase (Ubuntu 22.04)

Authors
  • Name
    Twitter

Overview

Learn how to build HBase.

Build Preparation

sudo apt install maven
sudo apt install openjdk-8-jdk

Build HBase

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

Binary Check

In the hbase/hbase-assembly/target folder, you can find the tar.gz file which is the build output of HBase.

hbase/hbase-assembly/target
hbase/hbase-assembly/target$ ls
archive-tmp  dependency-maven-plugin-markers          hbase-3.0.0-alpha-4-SNAPSHOT-client-bin.tar.gz  NOTICE.aggregate
dependency   hbase-3.0.0-alpha-4-SNAPSHOT-bin.tar.gz  maven-shared-archive-resources                  supplemental-models.xml