From 18f82d2639741dfbb62e00557d48e1eb4a2cd284 Mon Sep 17 00:00:00 2001 From: Andrew Or Date: Thu, 3 Sep 2015 11:13:07 -0700 Subject: [PATCH] Guard against Mesos cluster mode with R --- core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala | 3 +++ 1 file changed, 3 insertions(+) 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 86fcf942c2c4..36e9750b8663 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.")