There is a way to enable graceful shutdown of spark streaming by setting property spark.streaming.stopGracefullyOnShutdown
to true and then kill the process with kill -SIGTERM
command. However I don't see such option available for structured streaming (SQLContext.scala).
Is the shutdown process different in structured streaming? Or is it simply not implemented yet?
This feature is not implemented yet. But the write ahead logs of spark structured steaming claims to recover state and offsets without any issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With