Spark Streaming Graceful Shutdown

Viewed 3058

I saw there is an option to configure graceful shutdown in two places:

  1. While defining spark conf:

"spark.streaming.stopGracefullyOnShutdown", "true".

  1. When stopping the streaming context:

JavaStreamingContext scc;

scc.stop(true,true)

What is the differences between the two options?

Thanks

1 Answers
Related