背景:hadoop的hdfs的各个进程启动正常(UI页面访问也正常),启动hbase时,hmaster进程正常启动,hregionserver节点启动失败,报错:(regionserver.HRegionServer: STOPPED: Unhandled: org.apache.hadoop.hbase.ClockOutOfSyncException: Server h102,16020,1559046093139 has been rejected; Reported time is too far out of sync with master.  Time difference of 44483ms > max allowed of 30000ms)

Hbase由于时间不一致导致regionserver节点启动失败

 

解决方式一:

设置hbase各个节点之间允许的时间差(及修改30000ms的参数),但不建议如此操作,若有兴趣可以自行查看相关资料

解决方法二:

同步每个节点的时间,使用root权限执行命令 $>ntpdate asia.pool.ntp.org  (或是$>sudo ntpdate asia.pool.ntp.org)  

注意停止hmaster节点后,再master和regionserver节点上分别运行,然后重新启动hbase即可。

 

 

相关文章: