hbase版本:hbase-0.94.6-cdh4.3.2
异常描述:
启动reginserver时抛出异常
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hbase.ClockOutOfSyncException): org.apache.hadoop.hbase.ClockOutOfSyncException: Server **,60020,1393396330710 has been rejected; Reported time is too far out of sync with master. Time difference of 120475ms > max allowed of 30000ms
at org.apache.hadoop.hbase.master.ServerManager.checkClockSkew(ServerManager.java:229)
at org.apache.hadoop.hbase.master.ServerManager.regionServerStartup(ServerManager.java:163)
at org.apache.hadoop.hbase.master.HMaster.regionServerStartup(HMaster.java:980)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:320)
at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1426)Caused by:
异常分析:
master和regionserver的时间不一致,导致抛出异常
解决方案:
调整系统时间,并定时同步时间
ps:发现只有当regionserver的时间比master早时会抛这个异常,如果晚的话,一切正常