aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2015-09-03 13:57:20 -0700
committerAndrew Or <andrew@databricks.com>2015-09-03 13:57:20 -0700
commit08b07509746667791db7dbfa1b329b0e221044bb (patch)
tree08f3644313089b791ef132ea8822958d30038954 /core
parentdb4c130f9e8e2195c7cd8332ccb668217df55507 (diff)
downloadspark-08b07509746667791db7dbfa1b329b0e221044bb.tar.gz
spark-08b07509746667791db7dbfa1b329b0e221044bb.tar.bz2
spark-08b07509746667791db7dbfa1b329b0e221044bb.zip
[SPARK-10435] Spark submit should fail fast for Mesos cluster mode with R
It's not supported yet so we should error with a clear message. Author: Andrew Or <andrew@databricks.com> Closes #8590 from andrewor14/mesos-cluster-r-guard.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
index 86fcf942c2..36e9750b86 100644
--- a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
@@ -322,6 +322,9 @@ object SparkSubmit {
case (MESOS, CLUSTER) if args.isPython =>
printErrorAndExit("Cluster deploy mode is currently not supported for python " +
"applications on Mesos clusters.")
+ case (MESOS, CLUSTER) if args.isR =>
+ printErrorAndExit("Cluster deploy mode is currently not supported for R " +
+ "applications on Mesos clusters.")
case (STANDALONE, CLUSTER) if args.isPython =>
printErrorAndExit("Cluster deploy mode is currently not supported for python " +
"applications on standalone clusters.")