[SPARK-2165] spark on yarn: add support for setting maxAppAttempts in the ApplicationSubmissionContext

we should change the debug statement to say something like spark.yarn.maxappattempts is not set, using cluster default...