Stopping Storm: the right way

后端 未结 4 881
眼角桃花
眼角桃花 2021-02-04 04:35

Is there a clean way to stop storm without killing it with \"kill XXX\" where XXX is the PID?

I run \"storm kill topology-name\" to kill the topology, but after that, is

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 04:46

    From the page that you linked to:

    kill

    Syntax: storm kill topology-name [-w wait-time-secs]

    Kills the topology with the name topology-name. Storm will first deactivate the topology's spouts for the duration of the topology's message timeout to allow all messages currently being processed to finish processing. Storm will then shutdown the workers and clean up their state. You can override the length of time Storm waits between deactivation and shutdown with the -w flag.

    As you can see, this is designed to give you a "clean" shutdown. The kill command shuts down the workers.

提交回复
热议问题