hasRunningExecutors -> hasRegisteredExecutors
Add ": Unit = {"; fix comment typo.
Increase spark.app.heartbeatInterval to 60 seconds
[SPARK-2424] Make min consecutive executor failure app failure threshold configurable.