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
145 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
317 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,870 points
2,099 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,870 points
4,550 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,870 points
647 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
25,834 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
25,282 views
0 votes
7 answers

How to replace null values in Spark DataFrame?

in spark 2.x you can directly use ...READ MORE

answered 6 days ago in Apache Spark by gaurav
35,689 views