I have enabled worker cleanup using the following command:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.worker.cleanup.enabled=true
It is taking to long to start cleanup. Can someone tell me what is the default interval for cleanup and how it can be changed?