首页Hbase › hbase由于一台regionserver和datanode挂死导致hlog split问题

hbase由于一台regionserver和datanode挂死导致hlog split问题

java.io.IOException: failed log splitting for hadoop2,60020,1355710943425, will retry

at org.apache.hadoop.hbase.master.handler.ServerShutdownHandler.process(ServerShutdownHandler.java:180)

at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

Caused by: java.io.IOException: error or interrupt while splitting logs in [hdfs://mycluster/hbase/.logs/hadoop2,60020,1355710943425-splitting] Task = installed = 2 done = 0 error = 0

at org.apache.hadoop.hbase.master.SplitLogManager.splitLogDistributed(SplitLogManager.java:269)

at org.apache.hadoop.hbase.master.MasterFileSystem.splitLog(MasterFileSystem.java:277)

at org.apache.hadoop.hbase.master.MasterFileSystem.splitLog(MasterFileSystem.java:245)

at org.apache.hadoop.hbase.master.handler.ServerShutdownHandler.process(ServerShutdownHandler.java:176)

解决方法:

在hbase-site.xml加入一条,让启动hbase集群时不做hlog splitting

<property>

<name>hbase.master.distributed.log.splitting</name>

<value>false</value>

</property>

发表评论

注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>