hbase集群部署

解压hbase后

cd conf

vim hbase-site.xml

<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://ubuntu-00:9000/hbase</value>
</property>

<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>

<property>
<name>hbase.zookeeper.quorum</name>
<value>ubuntu-00:2181,ubuntu-01:2181</value>
</property>
</configuration>

vim hbase-env.sh

设置java_home以及修改hbase_manages_zk

vim regionserver

加入服务器主机名

/hbase-2.1.2/lib/client-facing-thirdparty目录下的

htrace-core-3.1.0-incubating.jar 复制到/hbase-2.1.2/lib即可。

scp hbase安装包至其他器

配置环境变量

hbase启动命令:

start-hbase.sh

注:启动hbase前应该保证hdfs和zookeeper已启动

原文地址:https://www.cnblogs.com/ldy233/p/11564612.html