news 2026/6/24 6:40:46

Hbase2.6.2集群部署

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Hbase2.6.2集群部署

配套版本安装:

Hadoop 3.4.1

Zookeeper3.9.3

Hbase2.6.2

前置安装

Linux环境下部署Zookeeper3.9.3(最新版)集群部署-CSDN博客

Linux环境下Hadoop3.4.1(最新版本)集群部署-CSDN博客

一、文件解压

软件下载:

Apache HBase – Apache HBase Downloads

cd /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_ZK=false

三、配置文件

配置hbase-site.xml文件 vi hbase-site.xml

<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.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> <name>hbase.rootdir</name> <value>hdfs://node11:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>node11,node12,node13</value> </property> <property> <name>hbase.master.info.port</name> <value>60010</value> </property> <property> <name>hbase.master.maxclockskew</name> <value>180000</value> <description>Time difference of regionserver from master</description> </property> <property> <name>hbase.coprocessor.abortonerror</name> <value>false</value> </property> <property> <name>hbase.unsafe.stream.capability.enforce</name> <value>false</value> </property> <property> <name>hbase.wal.provider</name> <value>filesystem</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 root@node12:/usr/local/soft scp -r /usr/local/soft/hbase-2.6.2 root@node13:/usr/local/soft scp /etc/profile root@node12:/etc/profile scp /etc/profile root@node13:/etc/profile

分别进入node12和node13上执行source /etc/profile

五、启动

依次启动 Hadoop、Zookeeper、Hbase(以下皆在hadoop100节点上执行)

Hadoop启动

start-all.sh

zookeeper启动

zkStart.sh zkStatus.sh

Hbase启动

start-hbase.sh

六、检验

node11节点上执行jps

Web端查看: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> <name>hbase.wal.provider</name> <value>filesystem</value> </property>

解决ERROR [RS-EventLoopGroup-3-2] util.NettyFutureUtils: Unexpected error caught when processing netty-CSDN博客

2、HMaster启动后进程就结束

解决方案:检查配置无误后

删除hdfs和zk内容

hdfs dfs -rm -r /hbase
zkCli.sh -server 192.168.1.11:2181 deleteall /hbase
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/24 6:34:30

如何扩展ClothSimulation:添加新的物理约束与布料类型

如何扩展ClothSimulation&#xff1a;添加新的物理约束与布料类型 【免费下载链接】ClothSimulation Basic cloth simulation using Verlet integration 项目地址: https://gitcode.com/gh_mirrors/cl/ClothSimulation ClothSimulation是一个基于Verlet积分的布料模拟项…

作者头像 李华
网站建设 2026/6/24 6:24:18

70款抖音快手封面边框模板设计动漫画电影视解说短剧视频透明图文模版

这个是短视频平台用的视频封面模板&#xff0c;做短视频的应该都知道把&#xff0c;有psd源文件跟png透明文件、 psd源文件需要用到PS软件才可以修改图片跟文字&#xff0c;用PS修改可以使用同款文字效果样式、 png透明文件可用于手机剪眏跟电脑剪眏以及PR软件、不能使用同款…

作者头像 李华
网站建设 2026/6/24 6:18:24

CANN/ge DataFlow Python开发指南附录

&#xfeff;# 附录 【免费下载链接】ge GE&#xff08;Graph Engine&#xff09;是面向昇腾的图编译器和执行器&#xff0c;提供了计算图优化、多流并行、内存复用和模型下沉等技术手段&#xff0c;加速模型执行效率&#xff0c;减少模型内存占用。 GE 提供对 PyTorch、Tensor…

作者头像 李华
网站建设 2026/6/24 6:11:49

HiApp网络请求优化:Axios在移动应用中的最佳配置与实践

HiApp网络请求优化&#xff1a;Axios在移动应用中的最佳配置与实践 【免费下载链接】HiApp A simple and interesting hybrid app. React Native version: http://t.cn/R5LqqLz Demo: 项目地址: https://gitcode.com/gh_mirrors/hi/HiApp 在移动应用开发中&#xff0c;…

作者头像 李华