Install Hbase 5.9 in Mac OS X

  1. Download hbase package tar.gz file from https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh_package_tarball_59.html

  2. Untar tar.gz file

  3. edit conf/hbase-env.sh

    export JAVA_HOME={{JAVA_HOME Directory path}}

  4. edit conf/hbase-site.xml

  <property>
    <name>hbase.rootdir</name>
    <value>file:///{{location}}/data</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>{{location}}/zookeeper</value>
  </property>
  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>{{hostname}}</value>
  </property>
  1. start hbase service

    bin/start-hbase.sh

  2. run hbase shell

    bin/hbase shell

  3. stop hbase shell service

    bin/stop-hbase.sh

This entry was posted in HBase, Mac. Bookmark the permalink.