Hbase-1.1.2-Installation Guide-On-Hadoop-2.x

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

HBASE-1.1.

2 INSTALLATION GUIDE
ON HADOOP-2.6.0
By. Mr. Gopal Krishna
Sr.Hadoop Architect
CCA 175-Spark and Hadoop Certified Consultant

STEP 1: Download the hbase-1.1.2-bin.tar.gz


tar ball From Apache Mirrors website

http://archive.apache.org/dist/hbase/1.1.2/

STEP 2: Place the Downloaded Tar Ball in


‘INSTALL’ directory (Path: /home/gopalkrishna/INSTALL

STEP 3: Extract the Downloaded TARBALL


using below command:
tar -xzvf hbase-1.1.2-bin.tar.gz
STEP 4: After TAR Extraction, we will get
hbase-1.1.2 directory

STEP 5: Update the HBASE_HOME & PATH


Variables in bashrc file (command: nano ~/.bashrc)
export HBASE_HOME=/home/gopalkrishna/INSTALL/hbase-1.1.2export
PATH=$PATH:$HBASE_HOME/bin
STEP 6: Open A New Terminal and Check
whether bashrc Changes are reflecting or not.
Ø echo $HBASE_HOME

STEP 7: To Install HBase in a clustered mode


we have to place below properties in
conf/hbase-site.xml file in between
gopalkrishna@ubuntu:~$ cat $HBASE_HOME/conf/hbase-site.xml

<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8020/hbase</value>
</property>

<property>
<name>hbase.tmp.dir</name>
<value>/home/gopalkrishna/INSTALL/hbasedata/tmp</value>
</property>

<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>

1. First Property for storing


To store the Meta data in this
mentioned path

To store the actual data in


this local file system path

To Install HBase in clustered


mode, this value should be

STEP 8: We have to add these properties at


the end of file in hbase-env.sh.

nano hbase-env.sh
export JAVA_HOME= /usr/lib/jvm/java-7-openjdk-amd64
export HBASE_REGIONSERVERS=${HBASE_HOME}/conf/regionservers
export HBASE_MANAGES_ZK=true

STEP 9: We have to start the hbase by using


below command (command: start-hbase.sh
1. HMaster Service Name
2. ZOOKEEPER Service Name
3. Region Server Service Name

STEP 10: To Access HMaster in Web UI


http:// <<hostnameOfHMaster>>:16010
http://localhost:16010
STEP 11: To Access Region Server in Web UI
http:// <<hostnameOfHMaster>>:16010
http://localhost:16301
STEP 12: To Stop HBase Services (stop-hbase.sh)

You might also like