Installing HBase on Centos 5.8

  • Import CDH4 repository

    cd /etc/yum.repos.d
  • Add Repository Key

    rpm --import 
  • Install HBase

    yum install hbase
  • Install HBase Master to run in standalone mode

    yum install hbase-master
  • Start HBase Master

    service hbase-master start
  • Test the installation with HBase Shell

    hbase shell
  • Configure Firewall for Zookeeper

    nano /etc/sysconfig/iptables


    # HBase
    # -----------------
    # ZooKeeper
    -A RH-Firewall-1-INPUT -p tcp --dport 2181 -j ACCEPT
    # hbase.master.port
    -A RH-Firewall-1-INPUT -p tcp --dport 60000 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp --dport 60010 -j ACCEPT
    # hbase.regionserver.port
    -A RH-Firewall-1-INPUT -p tcp --dport 60020 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp --dport 60030 -j ACCEPT
    # various internal ports
    -A RH-Firewall-1-INPUT -p tcp --dport 40100:40300 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp --dport 41500:42500 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp --dport 54590:54690 -j ACCEPT

    Restart iptables

    service iptables restart
  • troubleshooting: check that hostname is resolved

    • Download, compile and run Hadoop DNS Checker

      [root@bazileus hadoop-dns-checker]# ./
      # self check...
      -- host :
         host lookup : success (
         reverse lookup : success (
         is reachable : yes
      # end self check
  • restart hbase-master

    service hbase-master stop
    service hbase-master start

One thought on “Installing HBase on Centos 5.8

  1. Hello, I checked your tutorial for hbase installation in windows. It is very helpful. I am getting this error. Please check and help me.

    2014-04-17 16:22:08,599 ERROR [main] util.Shell: Failed to locate the winutils binary in the hadoop binary path Could not locate executable null\bin\winutils.exe in the Hadoop binaries. at org.apache.hadoop.util.Shell.getQualifiedBinPath( at org.apache.hadoop.util.Shell.getWinUtilsPath( at org.apache.hadoop.util.Shell.( at org.apache.hadoop.util.StringUtils.( at org.apache.hadoop.conf.Configuration.getStrings( at org.apache.hadoop.hbase.zookeeper.ZKConfig.makeZKProps( at org.apache.hadoop.hbase.zookeeper.ZKServerTool.main(

Pridaj komentár

Vaša e-mailová adresa nebude zverejnená. Vyžadované polia sú označené *