Skip to content

Commit c63daa0

Browse files
committed
Simplified code
1 parent 3cd5161 commit c63daa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments,
311311
private def cleanupStagingDir(fs: FileSystem) {
312312
var stagingDirPath: Path = null
313313
try {
314-
val preserveFiles = sparkConf.get("spark.yarn.preserve.staging.files", "false").toBoolean
314+
val preserveFiles = sparkConf.getBoolean("spark.yarn.preserve.staging.files", false)
315315
if (!preserveFiles) {
316316
stagingDirPath = new Path(System.getenv("SPARK_YARN_STAGING_DIR"))
317317
if (stagingDirPath == null) {

0 commit comments

Comments
 (0)