Setting Up Hadoop 3.3.6, HBase 2.5.6, and Phoenix 5.1.3 on Ubuntu 22.04
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.shto launch HBase in standalone mode.
Additional Notes
- Run all
mvand extraction commands withsudoif/usr/local/requires elevated privileges. - Always source
~/.bashrcafter 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.