安装hbase分布式集群出现的报错- ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

可能的原因如下:

1. 时间没有同步

HBase需要结点间的时间必须是同步的,可以使用date命令在Linux查看时间(同步时间命令:ntpdate 1.cn.pool.ntp.org)

2. 底层采用的不是hdfs协议

这个可以通过查看hbase-site.xml中参数hbase.rootdir的值来群定,一些其它的协议比如file协议等等,

HBase也 是支持的

3.  ZooKeeper

1) 查看zookeeper的状态是否正常,可以使用 zkServer.sh status 查看状态,或者直接查看它的日志

2) 如果zookeeper的状态正常,很有可能就是防火墙阻挡了zookeeper的默认端口2181

实际解决方法:

节点1  

[email protected] bin]# ntpdate time1.aliyun.com
18 May 17:09:10 ntpdate[28100]: step time server 203.107.6.88 offset 190809.542367 sec
[[email protected] bin]#
[[email protected] bin]#
[[email protected] bin]# date
Sat May 18 17:09:12 CST 2019

节点2

[[email protected] bin]# ntpdate time1.aliyun.com
18 May 17:10:25 ntpdate[13666]: step time server 203.107.6.88 offset -23002.467955 sec
[[email protected] bin]#
[[email protected] bin]#
[[email protected] bin]# date
Sat May 18 17:10:27 CST 2019

节点3

[[email protected] ~]# ntpdate time1.aliyun.com
18 May 17:09:50 ntpdate[1763]: step time server 203.107.6.88 offset -28799.994092 sec
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]# date
Sat May 18 17:09:52 CST 2019

再次启动 hbase  

主节点 

[[email protected] bin]# ./start-hbase.sh
running master, logging to /opt/hbase/bin/../logs/hbase-root-master-hadoop000.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
hadoop002: running regionserver, logging to /opt/hbase/bin/../logs/hbase-root-regionserver-hadoop002.out
hadoop001: running regionserver, logging to /opt/hbase/bin/../logs/hbase-root-regionserver-hadoop001.out
hadoop002: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
hadoop002: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
hadoop001: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
hadoop001: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
[[email protected] bin]#
[[email protected] bin]#
[[email protected] bin]# jps
21905 QuorumPeerMain
24228 NameNode
28628 Jps
24409 SecondaryNameNode
28443 HMaster
24557 ResourceManager

regionserver  节点 1

[[email protected] ~]# jps
1955 Jps
1812 HRegionServer

regionserver  节点 2

[[email protected] bin]# jps
1638 QuorumPeerMain
13721 HRegionServer
13916 Jps
11629 DataNode

成功启动了 分布式集群hbase

  

原文地址:https://www.cnblogs.com/weifeng1463/p/10886418.html

时间: 2024-10-11 03:28:07

安装hbase分布式集群出现的报错- ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing的相关文章

HBase 报错 ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

学hbase的时候,搭建好环境启动hbase,jps查看进程发现hmaster和hregionserevr可以正常出现. 终端下输入hbase shell后也可以进入hbase的shell,输入List后就报错: 错误提示:ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing 查看错误日志发现: 如图 发现有一台节点无法连接,所以master一直是等待状态,不能列出具体的namespace.启动另一台

hbase报错 ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

hbase报错: hbase(main):001:0> status ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2293) at org.apache.hadoop.hbase.master.MasterRpcServices.getCluster

Eclipse连接HBase 报错:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

在eclipse中连接到HBase报错org.apache.hadoop.hbase.PleaseHoldException: Master is initializing,搜索了好久,网上其它人说的解决办法对我都没用: - 做时间同步 - hbase-site.xml中参数hbase.rootdir使用hdfs协议 - 关闭防火墙 最终,参考这个论坛帖子:http://www.aboutyun.com/thread-20600-1-1.html(Hbase shell 启动报错,使用statu

hbase(ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet)

今天启动clouder manager集群时候hbase list出现 (ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet ERROR: Can't get master address from ZooKeeper; znode data == null ) 一类错误 看网上有几种解决方案 一个是 1: 在使用 hbase shell 时,一直报错.花了半个多小时

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

Ambari中配置hbase: Security Enable Authentication :Simple Enable Authorization: off ==>启动 重起整个系统,工作正常, [[email protected]~]# sudo -u hbase hbase shell SLF4J:Class path contains multiple SLF4J bindings. SLF4J:Found binding in[jar:file:/usr/hdp/2.3.4.0-34

Hbase集群client执行报错:Unable to find region for TABLE,,99999999999999 after 10 tries.

Windows7 eclipse下运行Hbase集群客户端,报 Unable to find region for wlan_log,,99999999999999 after 10 tries. Unable to find region for wlan_log,,99999999999999 after 10 tries. 其中wlan_log是我的Hbase表. 仔细检查了我的Hbase和Hadoop集群都没有问题,经过度娘的提示,我终于明白了, 因为我的host文件只配置了region

ceph集群增加pg报错

描述: 一个正在运行ceph集群增加pg时报错. 报错信息: Error E2BIG: specified pg_num 4096 is too large (creating 2048 new PGs on ~60 OSDs exceeds per-OSD max of 32) 解决: 由于一次增加pg数量太多导致,尝试一次增加少量pg解决此问题.或者需要调整ceph集群参数mon_osd_max_split_count默认值为32,意思为每个osd最大32个pg,调整完成后重启mon或在线调

Hadoop+Hbase分布式集群架构“完全篇

1.认识Hadoop和Hbase 1.1 hadoop简单介绍 Hadoop是一个使用java编写的Apache开放源代码框架,它允许使用简单的编程模型跨大型计算机的大型数据集进行分布式处理.Hadoop框架工作的应用程序可以在跨计算机群集提供分布式存储和计算的环境中工作.Hadoop旨在从单一服务器扩展到数千台机器,每台机器都提供本地计算和存储. 1.2 Hadoop架构 Hadoop框架包括以下四个模块: Hadoop Common:这些是其他Hadoop模块所需的Java库和实用程序.这些

[精华]Hadoop,HBase分布式集群和solr环境搭建

1. 机器准备 1.1 准备了2台机器,安装win7系统(64位) 两台windows物理主机: 192.168.131.44 administrator/(密码是一个空格) 192.168.131.67 administrator/(密码是一个空格) 1.2. 每台机器上安装VMwareWorkstation8.0.3 VMwareWorkstation8.0.3序列号:JG2TD-DJL95-FZZZ8-DU1NH-33GH7 1.3. 创建虚拟机CentOS-6.5-x86_64-bin-