- 启动 Hadoop 集群: Hadoop-集群部署 | Hadoop-高可用集群部署
- 启动 Zookeeper 集群: Zookeeper-高可用集群部署[DockerSwarm]
- 修改 HBase 配置文件
hbase-env.sh
export HBASE_PID_DIR=/var/hbase/pids export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.19.0.7-1.el9_1.x86_64 export HBASE_MANAGES_ZK=false export HADOOP_HOME=/opt/hadoop/hadoop-3.3.5
hbase-site.xml
<configuration> <property> <name>hbase.rootdir</name> <value>hdfs://hadoop01:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>hadoop01:2181,hadoop02:2181,hadoop03:2181</value> </property> <property> <name>hbase.wal.provider</name> <value>filesystem</value> </property> </configuration>
Regionservers
hadoop01 hadoop02 hadoop03
- 使用
scp -r
把软件复制到其他节点scp -r /opt/hbase/ root@hadoop02:/opt/hbase/
scp -r /opt/hbase/ root@hadoop03:/opt/hbase/
- 配置环境变量
- 启动主节点Master:
start-hbase.sh
- 启动从节点备用Master:
hbase-daemon.sh start master
上一篇
HBase-常用命令
2023-04-23
下一篇
Hadoop-13.HBase-特点
2023-04-23