Database Reference
In-Depth Information
5.
Once HBASE_HOME is added to the proile, either close the command window
and reopen it or run the following command; this step is required to reload
the latest proile settings for the user:
[root@localhost opt]# source /etc/profile
6. Edit the coniguration ile, conf/hbase-site.xml , and set the data directory
for HBase by assigning a value to the property key named hbase.rootdir
and hbase.zookeeper.property.dataDir , as follows:
<property>
<name>hbase.rootdir</name>
<value>file:///opt/myhbase/datadirectory</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/opt/myhbase/zookeeper</value>
</property>
The default base directory value for the hbase.rootdir and hbase.
zookeeper.property.dataDir properties is /tmp/hbase-${user.
name} , that is, /tmp/hbase-root for the "root" user which may lead to
the possibility of data loss at the time of server reboot. Hence, it is always
advisable to set the value for this property to avoid a data-loss scenario.
7.
Start HBase and verify the output with the following command:
[root@localhost opt]# cd /opt/myhbase/hbase-0.98.7-hadoop2
[root@localhost hbase-0.98.7-hadoop2]# bin/start-hbase.sh
This gives the following output:
 
Search WWH ::




Custom Search