I saw there is an option to configure graceful shutdown in two places:
- While defining spark conf:
"spark.streaming.stopGracefullyOnShutdown", "true".
- When stopping the streaming context:
JavaStreamingContext scc;
scc.stop(true,true)
What is the differences between the two options?
Thanks