Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shutdown spark structured streaming gracefully

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?

like image 667
Yuriy Bondaruk Avatar asked Sep 10 '25 19:09

Yuriy Bondaruk


1 Answers

This feature is not implemented yet. But the write ahead logs of spark structured steaming claims to recover state and offsets without any issues.

like image 137
Akhil Bojedla Avatar answered Sep 13 '25 11:09

Akhil Bojedla