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即可恢复。

 

转载于:https://www.cnblogs.com/skyfeng/articles/6662166.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值