服务器意外重启导致storm报错的问题处理

解决方法

cat /opt/storm-0.8.2/conf/storm.yaml中找到storm.local.dir设定的目录,备份supervisor和workers两个文件夹,#nohup supervise /service/storm/ &重启

错误如下

2014-06-17 12:27:05,267 INFO [main] daemon.supervisor (NO_SOURCE_FILE:invoke(0)) - Starting supervisor with id xxx at host hadoop02
2014-06-17 12:27:05,124 ERROR [Thread-2] storm.event (NO_SOURCE_FILE:invoke(0)) - 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:28)
at backtype.storm.utils.LocalState.get(LocalState.java:39)
at backtype.storm.daemon.supervisor$sync_processes.invoke(supervisor.clj:187) 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.corepartialfn4070.doInvoke(core.clj:2343)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at backtype.storm.eventeventmanagerfn
3058.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:2284) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2753)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:777)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)
at backtype.storm.utils.Utils.deserialize(Utils.java:63)
... 11 more
2014-06-17 12:27:05,124 INFO [Thread-2] storm.util (NO_SOURCE_FILE:invoke(0)) - Halting process: ("Error when processing an event")

--EOF--

你可能感兴趣的:(storm)