Shutdown spark structured streaming gracefully

戏子无情 提交于 2020-03-22 06:54:09

问题


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?


回答1:


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




回答2:


This Feature is not implemented yet and also it will give you duplicates if you kill the job from resource Manager while the batch is running.



来源:https://stackoverflow.com/questions/48567281/shutdown-spark-structured-streaming-gracefully

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!