How to Install HBase Properly

HBase is NoSQL (Not only Sequel) database, and is popular in Hadoop framework. Installation of HBase is tricky. If Hadoop is installed correctly then you can install HBase without issues. Here are the steps to Install HBase on top of Hadoop.

1. Commands to Install HBase

wget http://www-us.apache.org/dist/hbase/

# Above command is useful to download the Tar file.

sudo tar -xvf hbase-1.2.4-bin.tar.gz

# Above command useful to Untar the downloaded Tar file.

2. Move HBase file to Hadoop Installed Location

You need to move HBase to where Hadoop is installed.

/usr/local/hbase

Use ‘mv’ command to move Hbase

sudo mv hbase-1.2.4-bin /usr/local/hbase

Why /usr/local/hbase? During the installation of Hadoop, a folder called HBase already created in the same path. So, you need to move it to the same location.

3. How to Verify HBase is Installed?

cd /usr/local/hbase

Reach there and open hbase-site.xml using gedit.

  • cd conf
  • sudo gedit hbase-site.xml

You can find

<configuration>
</configuration>

4. How HBase Stores Data

It is column-oriented database. It stores data in the form of Key-Value. In the case of RDBMS it is in rows.

Row-idEmp-nameEmp-dept
101VenkatHeavy Engg
102SrinimfSoftware
HBase Data Structure

References

Related posts

Top 100 Hadoop Complex Interview Questions

Useful Interview Questions for Beginners and Experienced Software Engineers.

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.