master和regionserver时间不同步

regionserver错误日志中出现:

1
2
2014-12-05 11:26:17,119 INFO  [regionserver60020] regionserver.HRegionServer: STOPPED: Unhandled: org.apache.hadoop.hbase.ClockOutOfSyncException: Server hostname,60020,
1417749974947 has been rejected; Reported time is too far out of sync with master. Time difference of 41562ms > max allowed of 30000ms

  1. hbase.master.maxclockskew参数决定了master和regionserver时间同步的最大差值

  2. 使用ntpdate重新同步时钟即可