Hbase2.6.2集群部署

📅 2026/6/24 6:40:51
Hbase2.6.2集群部署
配套版本安装Hadoop 3.4.1Zookeeper3.9.3Hbase2.6.2前置安装Linux环境下部署Zookeeper3.9.3(最新版)集群部署-CSDN博客Linux环境下Hadoop3.4.1(最新版本)集群部署-CSDN博客一、文件解压软件下载Apache HBase – Apache HBase Downloadscd /usr/local/soft/ tar -zxvf hbase-2.6.2-bin.tar.gz二、修改启动变量编辑环境变量vi /etc/profile环境变量中添加如下内容export HBASE_HOME/usr/local/soft/hbase-2.6.2 export PATH$PATH:$HBASE_HOME/bin保存系统环境变量source /etc/profile修改hbase变量cd /usr/local/soft/hbase-2.6.2/conf/ vi hbase-env.sh添加如下内容export JAVA_HOME/usr/local/soft/jdk1.8.0_381 export HBASE_MANAGES_ZKfalse三、配置文件配置hbase-site.xml文件 vi hbase-site.xml?xml version1.0? ?xml-stylesheet typetext/xsl hrefconfiguration.xsl? !-- /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * -- configuration property namehbase.rootdir/name valuehdfs://node11:9000/hbase/value /property property namehbase.cluster.distributed/name valuetrue/value /property property namehbase.zookeeper.quorum/name valuenode11,node12,node13/value /property property namehbase.master.info.port/name value60010/value /property property namehbase.master.maxclockskew/name value180000/value descriptionTime difference of regionserver from master/description /property property namehbase.coprocessor.abortonerror/name valuefalse/value /property property namehbase.unsafe.stream.capability.enforce/name valuefalse/value /property property namehbase.wal.provider/name valuefilesystem/value /property /configuration注意如果使用外部zk, hbase.cluster.distributed需要设置为true文件regionservers配置改成如下内容node12 node13配置备选master节点可选cd /usr/local/soft/hbase-2.6.2/conf/ touch backup-masters在backup-masters文件中添加如下内容node12四、集群拷贝文件scp -r /usr/local/soft/hbase-2.6.2 rootnode12:/usr/local/soft scp -r /usr/local/soft/hbase-2.6.2 rootnode13:/usr/local/soft scp /etc/profile rootnode12:/etc/profile scp /etc/profile rootnode13:/etc/profile分别进入node12和node13上执行source /etc/profile五、启动依次启动 Hadoop、Zookeeper、Hbase以下皆在hadoop100节点上执行Hadoop启动start-all.shzookeeper启动zkStart.sh zkStatus.shHbase启动start-hbase.sh六、检验node11节点上执行jpsWeb端查看:http://node11:60010/master-status注master web 默认是不运行的需在配置文件中配置端口七、命令操作HBase shell数据操作汇总_hbase shell 数据库操作-CSDN博客FAQ:1、808 ERROR [RS-EventLoopGroup-1-2] util.NettyFutureUtils: Unexpected error caught when processing netty java.lang.IllegalArgumentException: object is not an instance of declaring class编辑hbase-site.xml加入下面这段property namehbase.wal.provider/name valuefilesystem/value /property解决ERROR [RS-EventLoopGroup-3-2] util.NettyFutureUtils: Unexpected error caught when processing netty-CSDN博客2、HMaster启动后进程就结束解决方案检查配置无误后删除hdfs和zk内容hdfs dfs -rm -r /hbasezkCli.sh -server 192.168.1.11:2181 deleteall /hbase