HBase org.apache.hadoop.hbase.PleaseHoldException: Master is initializing 错误解决方法

org.apache.hadoop.hbase.PleaseHoldException: Master is initializing 代表Master正在初始化中,出现这种错误的原因有很多,我也是看了https://blog.csdn.net/wormtown/article/details/77130827这篇博客之后才发现自己的错误所在(出现错误的第一时间还是得去看日志啊,盲目百度效率不高),和博主一样是集群时间不匹配,超过了配置的最大超时时间,我这边写下详细的解决方法:

进入HBase的日志目录查看日志

tail /opt/soft/hbase/logs/hbase-root-master-Server.log

不过因为这日志文件太长,建议使用Notepad++查看

org.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException: Server  server2,16020,1530466499334 has been rejected; Reported time is too far out of sync with master.  Time difference  of 367419ms > max allowed of 30000ms

错误原因是集群的超时时间超过了最大配置的超时时间30s。

解决方法一:

查看集群各台机器的系统时间用date命令,设置成相同的时间

用date -s修改日期时间

date -s 07/04/2018

date -s 22:58:00

同步BIOS时钟,强制把系统时间写入CMOS

clock -w

将当前时间写入BIOS,避免重启后失效

hwclock

解决方法二:

在hbase-site.xml中修改配置的值默认是30s修改成比你集群时间差大一点就好了

  <property>

    <name>hbase.master.maxclockskew</name>

    <value>30000</value>

</property>

其他原因导致的Master is initializing参考文章

https://blog.csdn.net/liuxiao723846/article/details/53146304





猜你喜欢

转载自blog.csdn.net/zzf1510711060/article/details/80919660
今日推荐