Storm因机器断电等,启动supervisor错误
因机器断电或其他异常导致的supervisor意外终止,再次启动时报错:
2014-08-13 10:36:03 b.s.event [ERROR] Error when processing event
java.lang.RuntimeException: java.io.EOFException
at backtype.storm.utils.Utils.deserialize(Utils.java:69) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.utils.LocalState.snapshot(LocalState.java:28) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.utils.LocalState.get(LocalState.java:39) ~[storm-core-0.9.0.1.jar:na]
at backtype.storm.daemon.supervisor$sync_processes.invoke(supervisor.clj:187) ~[storm-core-0.9.0.1.jar:na]
at clojure.lang.AFn.applyToHelper(AFn.java:161) [clojure-1.4.0.jar:na]
at clojure.lang.AFn.applyTo(AFn.java:151) [clojure-1.4.0.jar:na]
at clojure.core$apply.invoke(core.clj:603) ~[clojure-1.4.0.jar:na]
at clojure.core$partial$fn__4070.doInvoke(core.clj:2343) ~[clojure-1.4.0.jar:na]
at clojure.lang.RestFn.invoke(RestFn.java:397) ~[clojure-1.4.0.jar:na]
at backtype.storm.event$event_manager$fn__3072.invoke(event.clj:24) ~[storm-core-0.9.0.1.jar:na]
at clojure.lang.AFn.run(AFn.java:24) [clojure-1.4.0.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
Caused by: java.io.EOFException: null
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325) ~[na:1.7.0_67]
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794) ~[na:1.7.0_67]
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801) ~[na:1.7.0_67]
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299) ~[na:1.7.0_67]
at backtype.storm.utils.Utils.deserialize(Utils.java:64) ~[storm-core-0.9.0.1.jar:na]
... 11 common frames omitted
解决办法:
删除storm.yaml中配置的storm.local.dir指向的目录中的supervisor和workers两个目录,再次启动即可。
转自:http://www.dcsn123.com/html/exception/190/190328_190324_190325.htm