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

Posted weifeng1463

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装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

  

以上是关于安装hbase分布式集群出现的报错- ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing的主要内容,如果未能解决你的问题,请参考以下文章

Apache编译安装的时候出现的报错

未解决MySql安装出现ERROR 1405(28000)

Angular2启动项目的报错:ERROR in AppModule is not an NgModule

redis 集群安装时的报错的解决办法

实践与问题解决34VSCODE出现ssh “permissions are too open” error 链接远程服务器不好用的报错问题解决

zabbix服务器环境--安装过程中的报错解决:Error: Package