教程: https://hbase.apache.org/book.html#quickstart
(以下基本为翻译...)
$ tar xzvf hbase-3.0.0-SNAPSHOT-bin.tar.gz
$ cd hbase-3.0.0-SNAPSHOT/
修改 your_hbase_dir/conf/hbase-env.sh,找个位置添加
~~~shell
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_201 #即java安装目录
~~~
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///home/testuser/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/testuser/zookeeper</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
<description>
Controls whether HBase will check for stream capabilities (hflush/hsync).
Disable this if you intend to run on LocalFileSystem, denoted by a rootdir
with the 'file://' scheme, but be mindful of the NOTE below.
WARNING: Setting this to false blinds you to potential data loss and
inconsistent system state in the event of process and/or node failures. If
HBase is complaining of an inability to use hsync or hflush it's most
likely not a false positive.
</description>
</property>
</configuration>
$ bin/start-hbase.sh
结束后shell输入jps,查看java进程,会出现HMaster
~~~
$ jps
~~~
原文:https://www.cnblogs.com/wolf-yasen/p/10588666.html