Add ability to stop submitted Spark applications in SDK
In interactive mode you can kill running applications through the master ui, but there is no equivalent in the SDK.
This would allow application timeout/retries.
AZTK spark submit extra parameters with maximum retry, max time to run for application
Looking for some feature to perform task using AZTK SDK mentioned in spark Doc here
Additionally, standalone cluster mode supports restarting your application automatically if it exited with non-zero exit code. To use this feature, you may pass in the --supervise flag to spark-submit when launching your application. Then, if you wish to kill an application that is failing repeatedly, you may do so through:
./bin/spark-class org.apache.spark.deploy.Client kill