Multinode Cluster Installation for Hbase

Hi HBase Listeners,

This Article will provide you some basic information regarding installation of HBase Pseudo Cluster. Follow the steps and get Nosql database on your machine and start your processing.

Hbase_multinode_installation

Before installing HBase, you need Hadoop to be running in Multinode setup. For Hadoop Multinode Installation click here –> Hadoop Multinode

HBase Cluster Setup :

Machine-1

1. Download HBase
Download the HBase from its official Site. And untar it.

Download hbase-*.*.tar.gz
$tar –zxvf habse-*.*.tar.gz

2. It is best practice to add IP and its HostName in /etc/hosts/ file. If your network is backed by a DNS server, below changes are not needed. 

$sudo vi /etc/hosts

10.0.0.4 datadotz_master
10.0.0.2 datadotz_slave1
10.0.0.11 datadotz_slave2

3. Configuration Steps

$vi hbase-site.xml 

<configuration>
<property>
<name>hbase.master</name>
<value>datadotz_master:60000</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://datadotz_master:50000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>datadotz_master </value>
</property>
</configuration>

$vi hbase-env.sh 

export JAVA_HOME=/home/bigdata/jdk1.6.0_(JavaVersion)
export HBASE_MANAGES_ZK=false

$vi regionservers  ( IP’s that acts as a RegionServers)

datadotz_master

datadotz_slave1

datadotz_slave2

Set hbase, java and hadoop path on .bashrc

Untar zookeeper

$tar -zxvf zookeepr-3.5.6.tar.gz

Zookeeper Configuration :

$cd zookeepr-3.5.6/conf
$cp zoo_sample.cfg zoo.cfg
$vi zoo.cfg
tickTime=2000
clientPort=2181
initLimit=5
syncLimit=2
dataDir=/home/dd/zookeeper/data/
dataLogDir=/home/dd/zookeeper/logs/

Machine 2:

1. Download HBase
Download the HBase from its official Site. And untar it.

Download hbase-*.*.tar.gz
$tar –zxvf habse-*.*.tar.gz

2. It is best practice to add IP and its HostName in /etc/hosts/ file. If your network is backed by a DNS server, below changes are not needed. 

$sudo vi /etc/hosts

10.0.0.4 datadotz_master
10.0.0.2 datadotz_slave1
10.0.0.11 datadotz_slave2

3. Configuration Steps

$vi hbase-site.xml 

<configuration>
<property>
<name>hbase.master</name>
<value>datadotz_master:60000</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://datadotz_master:50000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>datadotz_master </value>
</property>
</configuration>

$vi hbase-env.sh 
export JAVA_HOME=/home/bigdata/jdk1.6.0_(JavaVersion)
export HBASE_MANAGES_ZK=false

Set hbase, java and hadoop path on .bashrc

Machine 3

1. Download HBase
Download the HBase from its official Site. And untar it.

Download hbase-*.*.tar.gz
$tar –zxvf habse-*.*.tar.gz

2. It is best practice to add IP and its HostName in /etc/hosts/ file. If your network is backed by a DNS server, below changes are not needed. 

$sudo vi /etc/hosts

10.0.0.4 datadotz_master
10.0.0.2 datadotz_slave1
10.0.0.11 datadotz_slave2

3. Configuration Steps

$vi hbase-site.xml 

<configuration>
<property>
<name>hbase.master</name>
<value>datadotz_master:60000</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://datadotz_master:50000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>datadotz_master</value>
</property>
</configuration>

$vi hbase-env.sh 

export JAVA_HOME=/home/bigdata/jdk1.6.0_(JavaVersion)
export HBASE_MANAGES_ZK=false

Set hbase, java and hadoop path on .bashrc
—————————————————————————————————————

Machine 1:

Start Zookeeper

$bin/zkServer.sh start

Start Hbase

$bin/start-hbase.sh

Check for the daemons running in all the machines.

Machine1: jps

HMaster
HRegionserver
Namenode
Datanode
Tasktracker

Machine2: jps
Datanode
Tasktracker
HRegionserver
secondaryNamenode

Machine3: jps
Datanode
Tasktracker
HRegionServer

Check for Web UI:

http://datadotz_master:60010

 

———————————-

Article written by DataDotz Team

DataDotz is a Chennai based BigData Team primarily focussed on consulting and training on technologies such as Apache Hadoop, Apache Spark , NoSQL(HBase, Cassandra, MongoDB), Search and Cloud Computing.

Note: DataDotz also provides classroom based Apache Kafka training in Chennai. The Course includes Cassandra , MongoDB, Scala and Apache Spark Training. For more details related to Apache Spark training in Chennai, please visit http://datadotz.com/training/