$ wget http://mirror.bit.edu.cn/apache/hbase/2.1.5/hbase-2.1.5-bin.tar.gz
$ tar -zxvf hbase-2.1.5-bin.tar.gz
$ cd hbase-2.1.5/conf
$ gedit hbase-site.xml
#
#<property>
# <name>hbase.cluster.distributed</name>
# <value>true</value>
#</property>
#<property>
# <name>hbase.rootdir</name>
# <value>hdfs://localhost:8020/hbase</value>
#</property>
#<property>
# <name>hbase.zookeeper.property.dataDir</name>
# <value>/home/yong/hbase/zookeeper</value>
#</property>
$ rm -rf /tmp
$ hdfs namenode -format
$ start-dfs.sh
$ start-yarn.sh
$ mr-jobhistory-daemon.sh start historyserver
$ rm -rf /home/yong/hbase/zookeeper
$ rm -rf $HBASE_HOME/logs
$ gedit ~/.bashrc
#export HBASE_HOME=/mnt/hgfs/hadoop-env/hbase-2.1.5
#export PATH=$PATH:$HBASE_HOME/bin
$ source ~/.bashrc
$ start-hbase.sh
#if Error: JAVA_HOME is not set
$ gedit $HBASE_HOME/conf/hbase-env.sh
#export JAVA_HOME=/mnt/hgfs/java-env/jdk1.8.0_211
#if java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
$ cp $HBASE_HOME/lib/client-facing-thirdparty/htrace-core-3.1.0-incubating.jar $HBASE_HOME/lib/
#if java.lang.IllegalStateException: The procedure WAL relies on the ability to hsync for proper operation during component failures, but the underlying filesystem does not support doing so. Please check the config value of 'hbase.procedure.store.wal.use.hsync' to set the desired level of robustness and ensure the config value of 'hbase.wal.dir' points to a FileSystem mount that can provide it.
$ gedit $HBASE_HOME/conf/hbase-site.xml
#<property>
# <name>hbase.unsafe.stream.capability.enforce</name>
# <value>false</value>
#</property>
#访问http://localhost:16010
$ stop-hbase.sh