搜索
查看: 9067|: 0

HRegionServer没有启动的原因

[复制链接]

22

主题

4

回帖

157

积分

版主

积分
157
发表于 2014-5-20 11:20:43 | 显示全部楼层 |阅读模式
几天没有启动hbase,今天重新启动,却发现 HRegionServer没有启动,
到 region server 查看 jps,里面只有HQuorumPeer,没有 HRegionServer。
于是就单独启动:
Java代码  [url=][img][/img][/url]

  • 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代码  [url=][img][/img][/url]

  • 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代码  [url=][img][/img][/url]

  • 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)

2012-07-31 08:22:57,498 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Attempting connect to Master server at ub9000,60000,13436942875582012-07-31 08:22:57,539 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Connected to master at ub9001/192.168.0.221:600202012-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=13436941769342012-07-31 08:22:57,545 FATAL org.apache.hadoop.hbase.regionserver.HRegionServer: Master rejected startup because clock is out of syncorg.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代码  [url=][img][/img][/url]

  • date -s 08:42:00

date -s 08:42:00最后重启:
Java代码  [url=][img][/img][/url]

  • hbase-daemon.sh --config /usr/local/hbase/hbase-conf start regionserver

hbase-daemon.sh --config /usr/local/hbase/hbase-conf start regionserver
Java代码  [url=][img][/img][/url]

  • 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

2012-07-31 08:40:43,827 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server Responder: starting2012-07-31 08:40:43,828 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server listener on 60020: starting【成功截图】
hbase主控节点 -- HMaster

hbase 存储节点--HRegionServer

停止HBase

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

大数据中国微信

QQ   

版权所有: Discuz! © 2001-2013 大数据.

GMT+8, 2024-12-22 16:01 , Processed in 0.051406 second(s), 25 queries .

快速回复 返回顶部 返回列表