You are on page 1of 1

1.) tar -xvzf hbase-1.2.5-bin.tar.

gz
2.) mv hbase-1.2.5 /usr/local/hbase
3.) gedit ~/.bashrc
export HBASE_HOME=/usr/local/hbase
export PATH=$PATH:$HBASE_HOME/bin
4.) source ~/.bashrc
5.) cd /usr/local/hbase
6.) cd conf
7.) gedit hbase-env.sh
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
save file

8.) gedit hbase-site.xml


add below lines
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>

//Here you have to set the path where you want HBase to store its built in zookeeper files.
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/cdac/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>
Save file

9.) start-all.sh if not started already


10.) start-hbase.sh
11.) Jps
Name Node
Secondary Name Node
Data Node
Node Manager
Resource Manager
HMaster
HQuoramManager
HResourceManager

12. Open web browser:

Localhohost:16010 to access Apache HBase

You might also like