Question 1
What happens when a Spark Structured Streaming pipeline operating with Kafka as the source is subject to a machine failure?
The data being processed when the failure happened will have produced partial results that result in incorrect outputs.
The pipeline will not be restarted automatically.
The pipeline will be restarted automatically by Spark which is able to pick up the exact data from Kafka which was being processed at the time of error
Spark will throw an error and halt
Spark will gracefully shut down, reboot that machine which failed and start the Structured Streaming pipeline again to continue from where it left off