HBASE setup

1. Download HBASE from hbase.apache.org and install it to /home/shgong/hbase

2. Setup java home
2.1. Change working directory to /home/shgong/hbase/conf/
2.2. Edit the hbase-env.sh

# export JAVA_HOME=/usr/java/jdk1.6.0/
export JAVA_HOME=/home/shgong/jdk/

3. Setup hbase data file directory
3.1. Make a dir

mkdir -p /home/shgong/hbase/var/hbase

3.2. Change the hbase-site.xml setting

<property>
<name>hbase.rootdir</name>
<value>file:///home/shgong/hbase/var/hbase</value>
</property>

4. Stare Hbase and check

cd /home/shgong/hbase/bin
start-hbase.sh
原文地址:https://www.cnblogs.com/littlesuccess/p/2694427.html