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

<configuration>
<!-- hbase存放数据目录 -->
<property>
<name>hbase.rootdir</name>
<value>file:///usr/local/hbase/tmp</value>
</property>

<!-- ZooKeeper数据文件路径 -->
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/data/soft/hbase-2.2.1/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>

4.启动服务。

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

访问服务:127.0.0.1:16010

5.涉及操作命令。

./hbase.sh shell

猜你喜欢

转载自www.cnblogs.com/jianxgin/p/12501910.html