1、问题描述

(1)HBase启动

[Hadoop@master conf]$ start-hbase.sh
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/grid/Hadoop/hadoop-3.3.1/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/grid/HBase/hbase-3.0.0/lib/client-facing-thirdparty/log4j-slf4j-impl-2.14.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
running master, logging to /home/grid/HBase/hbase-3.0.0/logs/hbase-grid-master-master.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/grid/Hadoop/hadoop-3.3.1/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/grid/HBase/hbase-3.0.0/lib/client-facing-thirdparty/log4j-slf4j-impl-2.14.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
slave1: regionserver running as process 20374. Stop it first.
slave3: regionserver running as process 20247. Stop it first.
master2: regionserver running as process 20879. Stop it first.
slave2: regionserver running as process 20581. Stop it first.
master: regionserver running as process 9846. Stop it first.

(2)查看HMaster

[Hadoop@master conf]$ jps
4642 Master
3555 ResourceManager
7364 QuorumPeerMain
3303 SecondaryNameNode
3692 NodeManager
3122 DataNode
7955 ZooKeeperMain
9846 HRegionServer
4217 RunJar
16987 HMaster
2972 NameNode
4092 VersionInfo
4412 RunJar
17308 Jps
4734 Worker

(3)问题暴露

二次查看,HMaster消失。

[Hadoop@master conf]$ jps
4642 Master
3555 ResourceManager
7364 QuorumPeerMain
3303 SecondaryNameNode
3692 NodeManager
17326 Jps
3122 DataNode
7955 ZooKeeperMain
9846 HRegionServer
4217 RunJar
2972 NameNode
4092 VersionInfo
4412 RunJar
4734 Worker

2、问题剖析

(1)参考:

参考1:https://blog.csdn.net/zengxianglei/article/details/97558349

参考2:https://www.cnblogs.com/zlslch/p/9192887.html

(2)剖析:

hdfs的默认端口号是8020,而笔者的core-site.xml中将hdfs的端口修改为了9000。

当采用参考1解决不了问题时,可采用参考2(非常重要)。

3、解决方案

(1)修改Hbase中配置文件:hbase-site.xml,添加如下内容:

<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
</property>

(2)拷贝hbase-site.xml至集群各个节点(此处省略)。

(3)Hbase重新启动(先停止Hbase,再启动):

Step1:停止Hbase

[Hadoop@master conf]$ stop-hbase.sh
no hbase master found
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/grid/Hadoop/hadoop-3.3.1/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/grid/HBase/hbase-3.0.0/lib/client-facing-thirdparty/log4j-slf4j-impl-2.14.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

Step2:启动Hbase

[Hadoop@master conf]$ start-hbase.sh
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/grid/Hadoop/hadoop-3.3.1/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/grid/HBase/hbase-3.0.0/lib/client-facing-thirdparty/log4j-slf4j-impl-2.14.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
running master, logging to /home/grid/HBase/hbase-3.0.0/logs/hbase-grid-master-master.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/grid/Hadoop/hadoop-3.3.1/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/grid/HBase/hbase-3.0.0/lib/client-facing-thirdparty/log4j-slf4j-impl-2.14.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2021-11-04 21:40:32,654 INFO [main] master.HMaster (HMaster.java:main(2980)) - STARTING service HMaster
2021-11-04 21:40:32,658 INFO [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - HBase 3.0.0-alpha-1
2021-11-04 21:40:32,658 INFO [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - Source code repository git://c1741ba7e144/home/zhangduo/hbase-rm/output/hbase revision=1883889e26fd1bac73630f48d1c6e9adab0230e4
2021-11-04 21:40:32,658 INFO [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - Compiled by zhangduo on Sun Jul 4 01:42:58 UTC 2021
2021-11-04 21:40:32,658 INFO [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - From source with checksum e75e6d4f2c074feeed1d98896edd5afa92702fffb8abe1bf7e1873fabfca987f1ad8c8f67be599297779dddf9f09e677e7c1ff29712bb041240ecf061e736def
slave1: regionserver running as process 20374. Stop it first.
slave2: regionserver running as process 20581. Stop it first.
master2: regionserver running as process 20879. Stop it first.
slave3: regionserver running as process 20247. Stop it first.
master: regionserver running as process 9846. Stop it first.

(4)查看Hbase启动情况:

[Hadoop@master conf]$ jps

4642 Master
3555 ResourceManager
18531 Jps
7364 QuorumPeerMain
18181 HMaster
3303 SecondaryNameNode
3692 NodeManager
3122 DataNode
7955 ZooKeeperMain
9846 HRegionServer
4217 RunJar
2972 NameNode
4092 VersionInfo
4412 RunJar
4734 Worker

间隔一定的时间,做二次验证,jps结果一致。

从上面结果可知,HMaster成功启动,HBase启动正常了。

最新文章

  1. tyvj1198 最优矩阵连乘
  2. 修改iphone联系人头像
  3. MongoDB中insert方法、update方法、save方法简单对比
  4. JavaScript很牛
  5. [Unity3D插件]2dtoolkit系列二 动画精灵的创建以及背景图的无限滚动
  6. [Git] 快速签出与更新所有远程分支.md
  7. js将map转换成数组
  8. python之requests-multipart/from-data
  9. [Locked] Missing Ranges
  10. Linux应用环境实战05:在Ubuntu 14.10中借用Windows的字体 (转)
  11. Access to the temp directory is denied. Identity &#39;NT AUTHORITY\NETWORK SERVICE&#39; under which XmlSerializer is running does not have sufficient permiss
  12. OO Unit 1 表达式求导
  13. 【原创】大叔经验分享(17)编程实践对比Java vs Scala
  14. 小妖精的完美游戏教室——buff系统
  15. Day2 Python基础之基本操作(一)
  16. arXiv 提交 pre-print 文章的相关注意事项
  17. C#对象内部属性排序测试
  18. tidb 架构 ~Tidb学习系列(3)
  19. Configure Virtual Serial Port Driver (vspd)注册表
  20. SVG.js Marker标记和自定义标签

热门文章

  1. vscode个人常用插件
  2. spring security 从零开始搭建
  3. 2019-2020-1 20199318《Linux内核原理与分析》第八周作业
  4. ZIP文件操作工具类
  5. DEV GridControl 主从表 (层次表)
  6. 谈谈 Redis 的过期策略
  7. 基于ALSA库实现音频采集和播放遇到的问题
  8. Mac 下的虚拟机Parallels_Desktop_15
  9. iOS开发之UIImage压缩处理
  10. adb查看包名