1. download http://124.202.164.13/files/1244000005C563FC/www.eu.apache.org/dist/hbase/stable/hbase-0.98.9-hadoop2-bin.tar.gz
2. copy to /opt
3. cp /opt
tar -zxvf hbase-0.98.9-hadoop2-bin.tar.gz
4. edit conf/hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<!--value>file:///opt/hbase/testdata</value-->
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/opt/hbase/testdata/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>
5. edit conf/hbase-env.sh
export JAVA_HOME=/opt/jdk17
6. start hbase
bin/start-hbase.sh