hbase集群安装

xiaoxiao2021-02-28  90

1.安装java

。。。。。

2.安装hadoop集群

。。。。。

3.安装zookeeper集群

。。。。。

4.安装hbase集群

4.1 下载解压

。。。。。

4.2 修改配置文件

hbase-env.sh

# The java implementation to use. Java 1.6 required. export JAVA_HOME=/usr/local/java # Tell HBase whether it should manage it's own instance of Zookeeper or not. export HBASE_MANAGES_ZK=false hbase-site.xml

<configuration> <property> <name>hbase.rootdir</name> <value>hdfs://master:9000/hbase</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>master,slave1,slave2</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.property.clientPort</name> <value>2181</value> <description>Property from ZooKeeper's config zoo.cfg. The port at which the clients will connect. </description> </property> </configuration> regionservers

master slave1 slave2

backup-masters

slave1 slave2

4.3 把hbase文件夹传给子节点

scp -r /xxx/hbase  slave1:/xxx/ 4.4启动hbase

在主节点运行start-hbase.sh

转载请注明原文地址: https://www.6miu.com/read-50964.html

最新回复(0)