When I run a spark program with mesos, if all slaves are down, the program just hang there. I could check the Mesos UI or logs to know that all slaves are down.
Is there a way to detect this situation in Spark programs automatically? Or is there a way to detect this situation programmably?