Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

Setting Up Hadoop 3.3.6, HBase 2.5.6, and Phoenix 5.1.3 on Ubuntu 22.04

Tech May 7 4

Prerequisites

Ensure your system runs Ubuntu 22.04. All commands assume a standard user with sudo access.

Install Hadoop 3.3.6

Download the binary distribution from the Apache Hadoop archive, then extract and relocate it:

sudo tar -xzf hadoop-3.3.6.tar.gz -C /usr/local/
sudo mv /usr/local/hadoop-3.3.6 /usr/local/hadoop

Configure environment variables by appending to your shell profile:

echo 'export HADOOP_HOME=/usr/local/hadoop' >> ~/.bashrc
echo 'export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin' >> ~/.bashrc
source ~/.bashrc

Verify the installation:

hadoop version

Install HBase 2.5.6

Obtain HBase 2.5.6 from the Apache HBase archive:

sudo tar -xzf hbase-2.5.6-bin.tar.gz -C /usr/local/
sudo mv /usr/local/hbase-2.5.6 /usr/local/hbase

Udpate your environment:

echo 'export HBASE_HOME=/usr/local/hbase' >> ~/.bashrc
echo 'export PATH=$PATH:$HBASE_HOME/bin' >> ~/.bashrc
source ~/.bashrc

Confirm the setup:

hbase version

Install Phoenix 5.1.3

Phoenix 5.1.3 must be compatible with HBase 2.x. Download the correct binary (phoenix-5.1.3-HBase-2.0-bin.tar.gz) from the Apache Phoenix archive:

sudo tar -xzf phoenix-5.1.3-HBase-2.0-bin.tar.gz -C /usr/local/
sudo mv /usr/local/phoenix-5.1.3-HBase-2.0-bin /usr/local/phoenix

Set environment variables:

echo 'export PHOENIX_HOME=/usr/local/phoenix' >> ~/.bashrc
echo 'export PATH=$PATH:$PHOENIX_HOME/bin' >> ~/.bashrc
source ~/.bashrc

To validate, start the SQL client after HBase is running:

sqlline.py localhost

Note: HBase must be started before conencting via Phoenix. Use start-hbase.sh to launch HBase in standalone mode.

Additional Notes

  • Run all mv and extraction commands with sudo if /usr/local/ requires elevated privileges.
  • Always source ~/.bashrc after modifying it to apply changes in the current session.
  • Ensure Java (preferably JDK 8 or 11) is installed, as all three components depend on it.
  • For development, standalone mode is sufficient; distributed setups require additional configuration.

Related Articles

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. F...

Comprehensive Guide to SSTI Explained with Payload Bypass Techniques

Introduction Server-Side Template Injection (SSTI) is a vulnerability in web applications where user input is improper handled within the template engine and executed on the server. This exploit can r...

Implement Image Upload Functionality for Django Integrated TinyMCE Editor

Django’s Admin panel is highly user-friendly, and pairing it with TinyMCE, an effective rich text editor, simplifies content management significantly. Combining the two is particular useful for bloggi...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.