Database Reference
In-Depth Information
In the pseudo-distributed mode, HDFS setup is another prerequisite (HDFS setup
also needs to be present in pseudo-distributed mode). After setting up Hadoop and
downloading the HBase binary, edit the conf/hbase-site.xml coniguration ile.
Also, set the HBase in the running mode by assigning a value to the property key
named hbase.cluster.distributed , as well as the data storage pointer to the
running Hadoop HDFS instance by assigning a value to the property key named
hbase.rootdir :
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
Once the settings are done, we can use the following command to start HBase:
[root@localhost opt]# cd /opt/myhbase/hbase-0.96.2-hadoop2
[root@localhost hbase-0.96.2-hadoop2]# bin/start-hbase.sh
Before starting HBase, make sure that the Hadoop services are
running and working ine.
Once HBase is conigured correctly, the jps command should show the HMaster
and HRegionServer processes running along with the Hadoop processes. Use the
hadoop fs command in Hadoop's bin/ directory to list the directories created in
HDFS as follows:
[root@localhost opt]# hadoop fs -ls /hbase
Found 7 items
drwxr-xr-x - hbase users 0 2014-10-20 14:28 /hbase/.tmp
drwxr-xr-x - hbase users 0 2014-10-20 17:29 /hbase/WALs
 
Search WWH ::




Custom Search