diff options
author | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2014-12-23 19:14:34 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2014-12-23 19:14:34 -0800 |
commit | 199e59aacd540e17b31f38e0e32a3618870e9055 (patch) | |
tree | ea9d7af5eed21a2779d2f2a2009f8a7298a7c44b /streaming | |
parent | fd41eb9574280b5cfee9b94b4f92e4c44363fb14 (diff) | |
download | spark-199e59aacd540e17b31f38e0e32a3618870e9055.tar.gz spark-199e59aacd540e17b31f38e0e32a3618870e9055.tar.bz2 spark-199e59aacd540e17b31f38e0e32a3618870e9055.zip |
[SPARK-4881][Minor] 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)
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Closes #3733 from sarutak/SPARK-4881 and squashes the following commits:
1771430 [Kousuke Saruta] Modified the code like sparkConf.get(...).toBoolean to sparkConf.getBoolean(...)
c63daa0 [Kousuke Saruta] Simplified code
Diffstat (limited to 'streaming')
0 files changed, 0 insertions, 0 deletions