I'm running Spark version 2.0.1
and want to kill a spark shell via the REST API (cannot use any other methods such as the yarn commands, for instance).
I managed to get the application id (with the spark-master:8080/json/
endpoint), but I could not find any API that allows to kill an application based on its ID (I'm familiar with the http://spark-master:6066/v1/submissions/kill/
endpoint, but the spark shell does not have a driver ID).
So is there a way to kill an application based on its ID, or should i just keep chasing pavements?