The task is submitted by ApplicationDeployer api, and the run is synchronous and waiting for the submission to be completed. If the task is submitted to yarn, it is probably accepted and the yarn applicationID is not obtained at this time. It is difficult to cancel the task.Recommended to org. apache. spark.launcher.SparkLauncher design, asynchronous submission tasks, can obtain applicationId as soon as possible, if you want to delete the task ahead of time, direct yarn application - kill XXX;
[image: image.png] [image: image.png]