SparkContext.
cancelJobGroup
Cancel active jobs for the specified group. See SparkContext.setJobGroup(). for more information.
SparkContext.setJobGroup()
New in version 1.1.0.
The group ID to cancel the job.
See also
SparkContext.cancelJobGroup()