How to set stage abort in Spark?

0 votes
This is what I want. When a stage is running, I want the stage to be aborted after attempting to try for 2 times. After attempting for 2 times, it should automatically be aborted. How to set this up?
Mar 12 in Apache Spark by Rishi
73 views

1 answer to this question.

0 votes

You can do it as follows. Use the property dynamically to set the number of attempts before aborting.

val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.stage.maxConsecutiveAttempts=2
answered Mar 12 by veer

Related Questions In Apache Spark

0 votes
1 answer

How to set executors for static allocation in Spark Yarn?

Open Spark shell and run the following ...READ MORE

answered Mar 28 in Apache Spark by Raj
117 views
0 votes
1 answer
0 votes
1 answer

How to convert rdd object to dataframe in spark

SqlContext has a number of createDataFrame methods ...READ MORE

answered May 30, 2018 in Apache Spark by nitinrawat895
• 10,490 points
1,164 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,490 points
2,303 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,490 points
234 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
11,892 views
0 votes
4 answers

How to change the spark Session configuration in Pyspark?

You can dynamically load properties. First create ...READ MORE

answered Dec 10, 2018 in Apache Spark by Vini
11,918 views
0 votes
6 answers