Skip to content

HBase Fedora Install

asutherland edited this page Feb 23, 2011 · 4 revisions

Taken and shortened from the Cloudera HBase install instructions for Fedora 13/14

  • Install the Sun Java JDK
    • Download the Sun JDK
      • rpm.bin version
    • bash jdk-6u12-linux-i586-rpm.bin
    • use new Java (optional) sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
  • Get the HBase yum repo
    • wget "http://archive.cloudera.com/redhat/cdh/cloudera-cdh3.repo"
    • mv cloudera-cdh3.repo /etc/yum.repos.d/
  • Install the HBase rpms via yum
    • sudo yum install hadoop-hbase hadoop-hbase-master
  • Start the HBase server
    • sudo /etc/init.d/hadoop-hbase-master start

If you want thrift...

  • Install hadoop-hbase-thrift
  • edit /etc/init.d/hadoop-hbase-thrift to add a "-f" flag to the start() block's line (search for "start thrift"). If you want it only bound to your loopback, also added "-b 127.0.0.1" in.
  • /etc/init.d/hadoop-hbase-thrift restart

And talk to the server...

hbase shell