Will move to ClusterScheduler static object.
Currently it is used in ClusterScheduler and YarnAllocationHandler (spark.deploy.yarn package)