You can utilize this method from StreamingContext :
  def stop(stopSparkContext: Boolean, stopGracefully: Boolean): Unit = {

Cheers

On Wed, Nov 25, 2015 at 1:16 PM, SRK <swethakasire...@gmail.com> wrote:

> Hi,
>
> How to gracefully shutdown a Spark Streaming Job? Currently I just kill it
> from my Spark StandAlone cluster/ master UI. But, in that case automatic
> Driver Restarts do not seem to be kicking off and there are a few options
> listed here. What is the correct way of doing this?
>
>
>
> http://stackoverflow.com/questions/32582730/how-do-i-stop-a-spark-streaming-job
>
> Thanks,
> Swetha
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-gracefully-shutdown-a-Spark-Streaming-Job-tp25482.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
>
>

Reply via email to