apache/spark — pull request #3733 by sarutak (2014-12-18 08:34:25+00:00)
Title: [SPARK-4881] Use SparkConf#getBoolean instead of get().toBoolean

It's really a minor issue.

In ApplicationMaster, there is code like as follows.

val preserveFiles = sparkConf.get("spark.yarn.preserve.staging.files", "false").toBoolean

I think, the code can be simplified like as follows.

val preserveFiles = sparkConf.getBoolean("spark.yarn.preserve.staging.files", false)