storm启动supervisor错误

貌似是因为电脑断电,没有正常退出storm引起的错误。

2013-06-13 14:11:29 event [ERROR] Error when processing event
java.lang.RuntimeException: java.io.EOFException
        at backtype.storm.utils.Utils.deserialize(Utils.java:68)
        at backtype.storm.utils.LocalState.snapshot(LocalState.java:24)
        at backtype.storm.utils.LocalState.get(LocalState.java:28)
        at backtype.storm.daemon.supervisor$read_worker_heartbeat.invoke(supervisor.clj:67)
        at backtype.storm.daemon.supervisor$read_worker_heartbeats$iter__4572__4576$fn__4577.invoke(supervisor.clj:80)
        at clojure.lang.LazySeq.sval(LazySeq.java:42)
        at clojure.lang.LazySeq.seq(LazySeq.java:60)
        at clojure.lang.RT.seq(RT.java:473)
        at clojure.core$seq.invoke(core.clj:133)
        at clojure.core$dorun.invoke(core.clj:2725)
        at clojure.core$doall.invoke(core.clj:2741)
        at backtype.storm.daemon.supervisor$read_worker_heartbeats.invoke(supervisor.clj:79)
        at backtype.storm.daemon.supervisor$read_allocated_workers.invoke(supervisor.clj:96)
        at backtype.storm.daemon.supervisor$sync_processes.invoke(supervisor.clj:194)
        at clojure.lang.AFn.applyToHelper(AFn.java:161)
        at clojure.lang.AFn.applyTo(AFn.java:151)
        at clojure.core$apply.invoke(core.clj:603)
        at clojure.core$partial$fn__4070.doInvoke(core.clj:2343)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at backtype.storm.event$event_manager$fn__2507.invoke(event.clj:24)
        at clojure.lang.AFn.run(AFn.java:24)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.EOFException
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2303)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2772)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:278)
        at backtype.storm.utils.Utils.deserialize(Utils.java:63)
        ... 21 more
2013-06-13 14:11:29 util [INFO] Halting process: ("Error when processing an event")

解决办法是:

删除storm配置文件中storm.local.dir所指向的目录中的supervisor和workers两个文件夹。

 

参考:https://github.com/nathanmarz/storm/issues/304

转载请注明: 转载自http://jyd.me/

本文链接地址: storm启动supervisor错误

Tagged on:

发表评论

电子邮件地址不会被公开。 必填项已用*标注