Kousuke Saruta created SPARK-4881: ------------------------------------- Summary: Use SparkConf#getBoolean instead of get().toBoolean Key: SPARK-4881 URL: https://issues.apache.org/jira/browse/SPARK-4881 Project: Spark Issue Type: Improvement Components: YARN Affects Versions: 1.3.0 Reporter: Kousuke Saruta Priority: Minor
It's really a minor issue. In ApplicationMaster, there is code like as follows. {code} val preserveFiles = sparkConf.get("spark.yarn.preserve.staging.files", "false").toBoolean {code} I think, the code can be simplified like as follows. {code} val preserveFiles = sparkConf.getBoolean("spark.yarn.preserve.staging.files", false) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org