spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Rosen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-4881) Use SparkConf#getBoolean instead of get().toBoolean
Date Wed, 24 Dec 2014 03:16:13 GMT

     [ https://issues.apache.org/jira/browse/SPARK-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Josh Rosen resolved SPARK-4881.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0

Issue resolved by pull request 3733
[https://github.com/apache/spark/pull/3733]

> 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: Trivial
>             Fix For: 1.3.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message