org.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException:
Server host-31,16020,1515048380697 has been rejected; Reported time is too far out of sync with master. Time difference of 44237ms > max allowed of 30000ms
解决办法
通过日志分析,可以发现Master节点和node2节点之间的连接用时71531ms,超过了默认的时间30000ms,具体为什么会连接超时,可能是硬件原因,也可能是软件问题。
[root@sapark1#] date
来查看当前时间。
如果时间差距过大可以使用:
[root@sapark1#] date -s 14:48:53 来修改系统的默认时间,时间设置完成后重启Hbase就行了。
或者:在Master节点配置连接时间的属性,时间设置长一点。
在Master节点的HBase配置文件hbase-site.xml中添加连接时长的属性,然后重新启动Hbase就行了。
<property>
<name>hbase.master.maxclockskew</name>
<value>120000</value>
</property>
错误详情:org.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException: Server host-31,16020,1515048380697 has been rejected; Reported time is too far out of sync with...