How to stop a Spark Job Execution programatically

Viewed 3159

If I want to stop my Spark Application from inside the spark job in a programmatic way in case of Exceptions or Specific use cases , how to acheive this from Java Code . I tried to call JavaSparkContext.close() but still the job seems to be running .

1 Answers
Related