可能的原因如下:
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