Your app is the running Spark Streaming system. It would be up to you
to build some mechanism that lets you cause it to call stop() in
response to some signal from you.

On Fri, Sep 12, 2014 at 3:59 PM, stanley <wangshua...@yahoo.com> wrote:
> In  spark streaming programming document
> <https://spark.apache.org/docs/latest/streaming-programming-guide.html>  ,
> it specifically states how to shut down a spark streaming context:
>
> The existing application is shutdown gracefully (see
> StreamingContext.stop(...) or JavaStreamingContext.stop(...) for graceful
> shutdown options) which ensure data that have been received is completely
> processed before shutdown.
>
> However, my question is, how do I initiate a shut down? Assume I am
> upgrading a running Spark streaming system, how do I send a message to the
> running spark streaming instance so that the call StreamingContext.stop(...)
> is made?
>
> Thanks,
>
> Stanley
>
>
>
> --
> View this message in context: 
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-initiate-a-shutdown-of-Spark-Streaming-context-tp14092.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
> For additional commands, e-mail: user-h...@spark.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to