By default, the node or executor is blacklisted for 1 hour and can not be executed. To change the blacklisting time, run the following command:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.blacklist.timeout=<time to blacklist>