Skip to main content



HBASE installation

1) Download tar file "hbase-0.96.2-hadoop2-bin.tar.gz"

2) Unpack this tar on each machine of your HBase installtion.

3) Edit .bashrc

export HBASE_HOME=/opt/ds/app/hbase-0.96.2-hadoop2
export PATH=$PATH:$HBASE_HOME/bin

4) Execute
>source .bashrc

5) Verify hbase version

> hbase version
2015-10-29 13:33:48,002 INFO  [main] util.VersionInfo: HBase 0.96.2-hadoop2

6) Edit "hbase-env.sh"

  • Update JAVA_HOME
  • export HBASE_MANAGES_ZK=true
  • export HBASE_PID_DIR=/var/hbase/pids
7) Update "hbase-site.xml" on Master 


<configuration>

  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://abcdHost:54310/hbase</value>
  </property>

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

  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>hdfs://abcdHost:54310/zookeeper</value>
  </property>
  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>abcdHost</value>
  </property>

  <property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
  </property>
  <property> 
    <name>hbase.regionserver.port</name> 
    <value>50020</value> 
  </property> 

<property> 
    <name>hbase.master.info.port</name> 
    <value>50010</value> 
  </property> 

<property> 
    <name>hbase.master.port</name> 
    <value>50000</value> 
  </property>

  <!--property> 
    <name>hbase.zookeeper.leaderport</name> 
    <value>4888</value> 
  </property--> 

</configuration>


8) On each slave node update "hbase-site.xml":

<configuration>

  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://abcdHost:54310/hbase</value>
  </property>

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

</configuration>

9) Update "regionserver". You can add all hosts name here separated by new line character.

abcdHost

10) Start and stop Hbase by start-hbase.sh and stop-hbase.sh

Comments