Installing HBase on Centos 5.8

  • Import CDH4 repository

    cd /etc/yum.repos.d
    wget http://archive.cloudera.com/cdh4/redhat/5/x86_64/cdh/cloudera-cdh4.repo
    
  • Add Repository Key

    rpm --import http://archive.cloudera.com/cdh4/redhat/5/x86_64/cdh/RPM-GPG-KEY-cloudera 
    
  • 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
    

    Add:

    # 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
    # hbase.master.info.port
    -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
    # hbase.regionserver.info.port
    -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]# ./run.sh
      # self check...
      -- host : bazileus.guglama.net
         host lookup : success (192.71.25.41)
         reverse lookup : success (bazileus.guglama.net)
         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 java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries. at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:278) at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:300) at org.apache.hadoop.util.Shell.(Shell.java:293) at org.apache.hadoop.util.StringUtils.(StringUtils.java:76) at org.apache.hadoop.conf.Configuration.getStrings(Configuration.java:1514) at org.apache.hadoop.hbase.zookeeper.ZKConfig.makeZKProps(ZKConfig.java:113) at org.apache.hadoop.hbase.zookeeper.ZKServerTool.main(ZKServerTool.java:46)

Pridaj komentár

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