HBase Installation On Ubuntu / Lubuntu

Hi Everybody, Today we will learn how to install HBase. HBase can be installed in two modes.

1. Standalone Mode
2. Distributed Mode

      Distributed Mode can be of two types Pseudo Distributed mode and fully distributed mode. In This Tutorial we will discuss about Pseudo Distributed Mode installation of HBase. I will soon share another post on how to install HBase in fully distributed mode.

UPDATE: Video for this topic is available here

Following are the steps for HBase installation.

1. Before installing HBase you should have installed java and hadoop already. If you have not installed Hadoop, please follow the link here.

2. Next is to chose HBase version that is completable with your hadoop installation. I am using Hadoop 1.0.3. so i am using HBase installation HBase 0.94.8.

3. Download HBase from HBase 0.94.8 and extract it in "$HOME/hbase" in my case it is "/home/hduser/hbase".

4. Edit $HOME/hbase/conf/hbase-env.sh with following command

On Ubuntu

          gedit $HOME/hbase/conf/hbase-env.sh

On Lubuntu

            leafpad $HOME/hbase/conf/hbase-env.sh

and insert following commands

         export JAVA_HOME=/usr/lib/jvm/java-6-jdk-i386

export HBASE_REGIONSERVERS=/home/hduser/hbase/conf/regionservers


         export HBASE_MANAGES_ZK=true
        
5. Edit /etc/bash.bashrc using following commands

On Ubuntu
         sudo gedit /etc/bash.bashrc

On Lubuntu
         sudo leafpad /etc/bash.bashrc

Insert following in this file.
         export HBASE_HOME=/home/hduser/hbase

        export PATH=$PATH:$HBASE_HOME/bin

save and close the file.

6. Close and reopen the terminal. Now edit the hosts file

        sudo leafpad /etc/hosts

on Ubuntu 
        sudo gedit /etc/hosts

in second line change 127.0.1.1 to 127.0.0.1.

7. Start HBase using following command.

    /home/hduser/hbase/bin/start-hbase.sh

8. You can access Hbase through shell with following command.

    hbase shell


I Hope this will be helpful. Stay tuned for more stuff. post your questions and feedback below. :)


Comments

  1. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating Hadoop administration Online Training

    ReplyDelete

Post a Comment

Popular posts from this blog

Hive UDF Example

Custom UDF in Apache Spark

Hadoop series : Pseudo Distributed Mode Hadoop Instalation