You can change the number of completed drivers displayed dynamically using the following command:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.deploy.retainedDrivers= <number of drivers to be displayed>