好贷网好贷款

HBase因为机器时间不一样导致起不起来

发布时间:2016-12-3 10:28:57 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"HBase因为机器时间不一样导致起不起来",主要涉及到HBase因为机器时间不一样导致起不起来方面的内容,对于HBase因为机器时间不一样导致起不起来感兴趣的同学可以参考一下。

几天没有启动hbase,今天重新启动,却发现 HRegionServer没有启动, 到 region server 查看 jps,里面只有HQuorumPeer,没有 HRegionServer。 于是就单独启动: Java代码 hbase-daemon.sh --config /usr/local/hbase/hbase-conf start regionserver  hbase-daemon.sh --config /usr/local/hbase/hbase-conf start regionserver 看到日志: /usr/local/hbase/hbase-logs/hbase-root-regionserver-ub9001.out: Java代码 Exception in thread "regionserver60020" java.lang.NullPointerException     at org.apache.hadoop.hbase.regionserver.HRegionServer.join(HRegionServer.java:1587)     at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:757)     at java.lang.Thread.run(Thread.java:619)  Exception in thread "regionserver60020" java.lang.NullPointerException at org.apache.hadoop.hbase.regionserver.HRegionServer.join(HRegionServer.java:1587) at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:757) at java.lang.Thread.run(Thread.java:619) /usr/local/hbase/hbase-logs/hbase-root-regionserver-ub9001.log: Java代码 2012-07-3108:22:57,498 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Attempting connect to Master server at ub9000,60000,1343694287558 2012-07-3108:22:57,539 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Connected to master at ub9001/192.168.0.221:60020 2012-07-3108:22:57,539 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Telling master at ub9000,60000,1343694287558 that we are up with port=60020, startcode=1343694176934 2012-07-3108:22:57,545 FATAL org.apache.hadoop.hbase.regionserver.HRegionServer: Master rejected startup because clock is out of sync  org.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException: Server ub9001,60020,1343694176934 has been rejected; Reported time is too far out of sync with master.  Time difference of 410865ms > max allowed of 180000ms     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)     at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:95)     at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:79)     at org.apache.hadoop.hbase.regionserver.HRegionServer.reportForDuty(HRegionServer.java:1676)     at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:634)     at java.lang.Thread.run(Thread.java:619)  2012-07-31 08:22:57,498 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Attempting connect to Master server at ub9000,60000,1343694287558 2012-07-31 08:22:57,539 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Connected to master at ub9001/192.168.0.221:60020 2012-07-31 08:22:57,539 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Telling master at ub9000,60000,1343694287558 that we are up with port=60020, startcode=1343694176934 2012-07-31 08:22:57,545 FATAL org.apache.hadoop.hbase.regionserver.HRegionServer: Master rejected startup because clock is out of sync org.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException: Server ub9001,60020,1343694176934 has been rejected; Reported time is too far out of sync with master. Time difference of 410865ms > max allowed of 180000ms at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:95) at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:79) at org.apache.hadoop.hbase.regionserver.HRegionServer.reportForDuty(HRegionServer.java:1676) at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:634) at java.lang.Thread.run(Thread.java:619) 才知道原来时间对不上. 同时在几个机器上校正时间: Java代码 date -s 08:42:00 //第一种方法同步系统时间 /usr/sbin/ntpdate  asia.pool.ntp.org (第二种方法) date -s 08:42:00 最后重启: Java代码 hbase-daemon.sh --config /usr/local/hbase/hbase-conf start regionserver  hbase-daemon.sh --config /usr/local/hbase/hbase-conf start regionserver Java代码 2012-07-3108:40:43,827 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server Responder: starting 2012-07-3108:40:43,828 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server listener on60020: starting  2012-07-31 08:40:43,827 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server Responder: starting 2012-07-31 08:40:43,828 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server listener on 60020: starting 【成功截图】 hbase主控节点 -- HMaster hbase 存储节点--HRegionServer 停止HBase

上一篇:【南京饿死两幼女的案件追踪】:其父亲出狱后称太狠了
下一篇:谚语幸运的开始

相关文章

相关评论