Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Hbase installation and Creating first table.
1. HBASE Installation on UBUNTU Single Node
Pre-Requisites:
--> Install Java (From Command Line: sudo apt-get install openjdk-7-jdk)
--> Install VIM Editor (From Command Line: sudo apt-get install vm)
1. Download HBASE (hbase-0.94.18.tar.gz) from below
http://mirror.sdunix.com/apache/hbase/stable/
2. Extract and place it in /usr/local
3. Modify hbase-site.xml,hbase-env.sh by adding java_home and path variables
hbase-site.xml (Which will be in /usr/local/hbase-0.94.18/conf)
vi hbase-site.xml
Add this property in <configuration>
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///home/sampath/hbase</value>
</property>
</configuration>
hbase-env.sh (Which will be in /usr/local/hbase-0.94.18/conf)
vi hbase-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export HBASE_LOG_DIR=/usr/local/hbase-0.94.8/logs
export HBASE_PID_DIR=/usr/local/hbase-0.94.8/pids
4. Modify bashrc and bashprofile
bashrc(vi ~/.bashrc)
export HBASE_HOME=/usr/local/HBASE/hbase-0.94.18
export PATH=$PATH:$HBASE_HOME/bin
bash_profile(vi ~/.bash_profile)
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-amd64/bin
5. Change /etc/hosts value o 127.0.1.1 to 127.0.0.1
6. Now go to hbase extract folder bin and
a. sudo ./start-hbase.sh
b. sudo ./hbase shell
7. Creating an sample table in hbase
create 'test','f1'
8. Test whether a table is created or not by
scan 'test' to check whether table has created or not.
INSTALLATION IS SUCCESSFUL.