4.1. Start HBase and ZooKeeper

  1. Start ZooKeeper. Execute these commands from each ZooKeeper node:

    Login as $ZOOKEEPER_USER
    /usr/lib/zookeeper/bin/zkServer.sh start $ZOOKEEPER_CONF_DIR/zoo.cfg
  2. Create HBase user home on HDFS from any host:

    Login as $HDFS_USER
    hadoop fs -mkdir /user/$HBASE_USER 
    hadoop fs -chown $HBASE_USER:$HBASE_USER/user/$HBASE_USER
     
  3. Create HBase root directories on HDFS from any host:

    Login as $HDFS_USER
    hadoop fs -mkdir /apps/hbase/data
    hadoop fs -chown -R $HBASE_USER:$HBASE_USER/apps/hbase

  4. Start the HBase Master. Execute these commands from the HBase Master node:

    Login as $HBASE_USER
    /usr/lib/hbase/bin/hbase-daemon.sh --config $HBASE_CONF_DIRstart master 
  5. Start the RegionServers. Execute this command from each HBase RegionServer node:

    Login as $HBASE_USER
    /usr/lib/hbase/bin/hbase-daemon.sh --config $HBASE_CONF_DIR start regionserver
    

loading table of contents...