storm supervisor启动时报错:[ERROR] Error when processing event

异常信息:

2017-04-02 20:38:13 b.s.d.supervisor [INFO] Starting supervisor with id 08aab113-d30d-45bd-a99e-3b642b9af973 at host hadoop1-2
2017-04-02 20:38:13 b.s.event [ERROR] Error when processing event
java.lang.RuntimeException: java.io.EOFException
	at backtype.storm.utils.Utils.deserialize(Utils.java:93) ~[storm-core-0.9.2-incubating.jar:0.9.2-incubating]
	at backtype.storm.utils.LocalState.snapshot(LocalState.java:45) ~[storm-core-0.9.2-incubating.jar:0.9.2-incubating]
	at backtype.storm.utils.LocalState.get(LocalState.java:56) ~[storm-core-0.9.2-incubating.jar:0.9.2-incubating]
	at backtype.storm.daemon.supervisor$sync_processes.invoke(supervisor.clj:207) ~[storm-core-0.9.2-incubating.jar:0.9.2-incubating]
	at clojure.lang.AFn.applyToHelper(AFn.java:161) [clojure-1.5.1.jar:na]
	at clojure.lang.AFn.applyTo(AFn.java:151) [clojure-1.5.1.jar:na]
	at clojure.core$apply.invoke(core.clj:619) ~[clojure-1.5.1.jar:na]
	at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[clojure-1.5.1.jar:na]
	at clojure.lang.RestFn.invoke(RestFn.java:397) ~[clojure-1.5.1.jar:na]
	at backtype.storm.event$event_manager$fn__2378.invoke(event.clj:39) ~[storm-core-0.9.2-incubating.jar:0.9.2-incubating]
	at clojure.lang.AFn.run(AFn.java:24) [clojure-1.5.1.jar:na]
	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]
Caused by: java.io.EOFException: null
	at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325) ~[na:1.7.0_65]
	at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794) ~[na:1.7.0_65]
	at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801) ~[na:1.7.0_65]
	at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299) ~[na:1.7.0_65]
	at backtype.storm.utils.Utils.deserialize(Utils.java:88) ~[storm-core-0.9.2-incubating.jar:0.9.2-incubating]
	... 11 common frames omitted
2017-04-02 20:38:13 b.s.util [INFO] Halting process: ("Error when processing an event")

 

产生此错误的原因是:storm没有正常退出,导致下次启动时报错

解决办法:

1、检查storm配置文件storm.yaml,是否配置属性storm.local.dir;

2、若配置了storm.local.dir属性,在配置的路径下删除supervisor和workers两个文件夹即可;

3、若没有配置storm.local.dir属性,在bin/storm-local/下删除supervisor和workers两个文件夹即可;

4、重启启动storm即可恢复。

 

posted @ 2017-04-03 16:08  skyfeng713  阅读(1402)  评论(0编辑  收藏  举报