HBase is a NoSQL (Not only SQL) database and is popular in the 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/
# The above command is useful to download the Tar file.
sudo tar -xvf hbase-1.2.4-bin.tar.gz
# The above command is 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 the ‘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 is 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
Go 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 a column-oriented database. It stores data in the form of Key-Value. In the case of RDBMS, it is in rows.
| Row-id | Emp-name | Emp-dept |
| 101 | Venkat | Heavy Engg |
| 102 | Srinimf | Software |
References
- Big Data and Hadoop: Learn by Example
- APACHE SPARK AND SCALA FOR BEGINNERS: 2 BOOKS IN 1 – Learn Coding Fast! APACHE SPARK AND SCALA Crash Course, A QuickStart Guide, Tutorial Book by Program Examples, In Easy Steps!
Top 100 Hadoop Complex Interview Questions
Useful Interview Questions for Beginners and Experienced Software Engineers.
