• 服务器意外重启导致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--

  • 相关阅读:
    对象实例化过程分析
    对象实例化过程分析
    QuickHit游戏
    QuickHit游戏
    java继承向上转型和向下转型和动态绑定
    java继承向上转型和向下转型和动态绑定
    洛谷:P1095 守望者的逃离(贪心+dp)
    Manacher算法-最长回文子串
    numpy array()
    CNN 卷积神经网络结构
  • 原文地址:https://www.cnblogs.com/buro79xxd/p/3907310.html
Copyright © 2020-2023  润新知