diff options
author | Reynold Xin <rxin@databricks.com> | 2015-11-18 12:50:29 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-11-18 12:50:29 -0800 |
commit | a416e41e285700f861559d710dbf857405bfddf6 (patch) | |
tree | a0d2f70568985f6c98c3bbf1a7435ea7b731e726 /core/src | |
parent | 31921e0f0bd559d042148d1ea32f865fb3068f38 (diff) | |
download | spark-a416e41e285700f861559d710dbf857405bfddf6.tar.gz spark-a416e41e285700f861559d710dbf857405bfddf6.tar.bz2 spark-a416e41e285700f861559d710dbf857405bfddf6.zip |
[SPARK-11809] Switch the default Mesos mode to coarse-grained mode
Based on my conversions with people, I believe the consensus is that the coarse-grained mode is more stable and easier to reason about. It is best to use that as the default rather than the more flaky fine-grained mode.
Author: Reynold Xin <rxin@databricks.com>
Closes #9795 from rxin/SPARK-11809.
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/org/apache/spark/SparkContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala b/core/src/main/scala/org/apache/spark/SparkContext.scala index b5645b08f9..ab374cb712 100644 --- a/core/src/main/scala/org/apache/spark/SparkContext.scala +++ b/core/src/main/scala/org/apache/spark/SparkContext.scala @@ -2710,7 +2710,7 @@ object SparkContext extends Logging { case mesosUrl @ MESOS_REGEX(_) => MesosNativeLibrary.load() val scheduler = new TaskSchedulerImpl(sc) - val coarseGrained = sc.conf.getBoolean("spark.mesos.coarse", false) + val coarseGrained = sc.conf.getBoolean("spark.mesos.coarse", defaultValue = true) val url = mesosUrl.stripPrefix("mesos://") // strip scheme from raw Mesos URLs val backend = if (coarseGrained) { new CoarseMesosSchedulerBackend(scheduler, sc, url, sc.env.securityManager) |