Hbase Installation

Installing Hbase
———————
$ su hadoop
$ wget http://www.eu.apache.org/dist/hbase/hbase-1.0.2/hbase-1.0.2-bin.tar.gz
$ tar -zvxf hbase-1.0.2-bin.tar.gz
$ mv hbase-1.0.2 hbase

Configuration
————–
$ cd /home/hadoop/hbase/conf/

I. Edit hbase-env.sh and set the java path
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/

II. Edit hbase-site.xml
Inset the following contents between <configuration></configuration> tags

<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://<hadoop_master_IP>:9000/hbase</value>
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>
</property>

Start Hbase
————
start-hbase.sh

Leave a Reply

Your email address will not be published. Required fields are marked *