aboutsummaryrefslogtreecommitdiff
path: root/yarn
diff options
context:
space:
mode:
authorjerryshao <sshao@hortonworks.com>2016-03-08 09:43:35 -0800
committerMarcelo Vanzin <vanzin@cloudera.com>2016-03-08 09:43:35 -0800
commitca1a7b9d6acf8e1f9b6ab6265f9001c2c7ff8489 (patch)
treea98f6063d2eef916641dd6d6b68614bfd3f3eb26 /yarn
parent7d05d02bffe5f1c4fbf955664bcc87e38ce01f5f (diff)
downloadspark-ca1a7b9d6acf8e1f9b6ab6265f9001c2c7ff8489.tar.gz
spark-ca1a7b9d6acf8e1f9b6ab6265f9001c2c7ff8489.tar.bz2
spark-ca1a7b9d6acf8e1f9b6ab6265f9001c2c7ff8489.zip
[HOTFIX][YARN] Fix yarn cluster mode fire and forget regression
## What changes were proposed in this pull request? Fire and forget is disabled by default, with this patch #10205 it is enabled by default, so this is a regression should be fixed. ## How was this patch tested? Manually verified this change. Author: jerryshao <sshao@hortonworks.com> Closes #11577 from jerryshao/hot-fix-yarn-cluster.
Diffstat (limited to 'yarn')
-rw-r--r--yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala b/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
index 36073de90d..6ca9669002 100644
--- a/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
+++ b/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
@@ -89,7 +89,7 @@ private[spark] class Client(
}
}
}
- private val fireAndForget = isClusterMode && sparkConf.get(WAIT_FOR_APP_COMPLETION)
+ private val fireAndForget = isClusterMode && !sparkConf.get(WAIT_FOR_APP_COMPLETION)
private var appId: ApplicationId = null