Java Code Examples for org.apache.spark.SparkContext#cancelJobGroup()
The following examples show how to use
org.apache.spark.SparkContext#cancelJobGroup() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SparkSqlInterpreter.java From Explorer with Apache License 2.0 | 5 votes |
@Override public void cancel() { SQLContext sqlc = getSparkInterpreter().getSQLContext(); SparkContext sc = sqlc.sparkContext(); sc.cancelJobGroup(jobGroup); }
Example 2
Source File: SparkSqlInterpreter.java From zeppelin with Apache License 2.0 | 4 votes |
@Override public void cancel(InterpreterContext context) throws InterpreterException { SparkContext sc = sparkInterpreter.getSparkContext(); sc.cancelJobGroup(Utils.buildJobGroupId(context)); }