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, 2019 in Apache Spark by Rishi
128 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, 2019 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, 2019 in Apache Spark by Raj
260 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,840 points
1,807 views
0 votes
1 answer
+1 vote
1 answer
+1 vote
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,840 points
3,887 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,840 points
533 views
+1 vote
11 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
20,615 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
19,793 views
0 votes
6 answers