Reported time is too far out of sync with master. Time difference of ...HBase时钟不同步问题

HBbase的Master节点和Regionserver节点的时钟不同步,导致HBase的Regionsever不能正常启动,具体错误表现如下。

2017-10-25 17:34:04,137 FATAL [regionserver60020] regionserver.HRegionServer: ABORTING region server bionode1,60020,1508924043337: Unhandled: org.apache.hadoop.hbase.ClockOutOfSyncException: Server bionode1,60020,1508924043337 has been rejected; Reported time is too far out of sync with master. Time difference of 57422ms > max allowed of 30000ms

org.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException: Server bionode1,60020,1508924043337 has been rejected; Reported time is too far out of sync with master. Time difference of 57422ms > max allowed of 30000ms

解决方法:

1)使用nptupdate同步Master节点和RegionServer节点的时钟,同步过程参考http://blog.csdn.net/scorpio3k/article/details/49645219。

2)如果感觉nptupdate太复杂,可以手工设置每个机器的时间,并写入CMOS里,具体过程如下

      首先设置本地时间  命令为 date –s '2017-10-25 18:10:20'

      其次,将时间写入CMOS,命令为 clock -w

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值