1. 程式人生 > >Reported time is too far out of sync with master. Time difference of ...HBase時鐘不同步問題

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