Hbase安装(简)


1.下载hbase到服务器,解压移动到/usr/local/下

2.更改vim hbase-env.sh加入java工作目录

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-2.b14.el7.x86_64/

3.更改 hbase-site.xml




hbase.rootdir
file:///usr/local/hbase/tmp




hbase.zookeeper.property.dataDir
/data/soft/hbase-2.2.1/zookeeper


hbase.unsafe.stream.capability.enforce
false

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.


4.启动服务。

启动服务:. /start-hbase.sh

访问服务:127.0.0.1:16010

5.涉及操作命令。

./hbase.sh shell