Published

二 05 六月 2012

←Home

Hbase某个节点单独启动HRegionServer报错

错误:

starting regionserver, logging to /data/java/hbase-0.90.3/logs/hbase-root-regionserver-SFserver25.localdomain.out
Exception in thread regionserver60020 java.lang.NullPointerException
at org.apache.hadoop.hbase.regionserver.HRegionServer.join(HRegionServer.java:1417)
at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:683)
at java.lang.Thread.run(Thread.java:662)

有以下原因:

1hbase中服务器时间不同步造成的regionserver启动失败
rg.apache.hadoop.hbase.ClockOutOfSyncException: org.apache.hadoop.hbase.ClockOutOfSyncException: Server hadoop-node6,60020,1337908009841 has been rejected; Reported time is too far out of sync with master. Time difference of 882788ms > max allowed of 30000ms

方案1

在hbase-site.xml添加配置

<property>
<name>hbase.master.maxclockskew</name>
<value>180000</value>
<description>Time difference of regionserver from master</description>
</property>

方案2 错误里指出节点机的时间和master的时间差距大于30000ms,就是30秒时无法启动服务。 修改各结点时间,使其误差在30s内

Go Top
comments powered by Disqus