Use these steps to validate your installation.
Start HBase and ZooKeeper.
Execute this command from the each ZooKeeper node:
<login as $ZOOKEEPER_USER> /usr/lib/zookeeper/bin/zkServer.sh start $ZOOKEEPER_CONF_DIR/zoo.cfg
Execute this command from the HBase Master node:
<login as $HDFS_USER> /usr/lib/hadoop/bin/hadoop fs -mkdir /apps/hbase /usr/lib/hadoop/bin/hadoop fs -chown -R hbase /apps/hbase <login as $HBASE_USER> /usr/lib/hbase/bin/hbase-daemon.sh --config $HBASE_CONF_DIR start master
Execute this command from each HBase Region Server node:
<login as $HBASE_USER> /usr/lib/hbase/bin/hbase-daemon.sh --config $HBASE_CONF_DIR start regionserver
where:
$HBASE_CONF_DIR
is the directory to store the HBase configuration files. For example,/etc/hbase/conf
.$HBASE_USER
is the user owning the HBase services. For example,hbase
.$ZOOKEEPER_CONF_DIR
is the directory to store the ZooKeeper configuration files. For example,/etc/zookeeper/conf
.$ZOOKEEPER_USER
is the user owning the ZooKeeper services. For example,zookeeper
.
Smoke Test HBase and ZooKeeper.
From a terminal window, enter:
su - $HBASE_USER hbase shell
In the HBase shell, enter the following command:
status