Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/1200#discussion_r14276160
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
@@ -117,14 +117,25 @@ object SparkSubmit {
val isPython = args.isPython
val isYarnCluster = clusterManager == YARN && deployOnCluster
+ // For mesos, only client mode is supported
if (clusterManager == MESOS && deployOnCluster) {
- printErrorAndExit("Cannot currently run driver on the cluster in
Mesos")
+ printErrorAndExit("Mesos cluster mode is currently not supported.")
+ }
+
+ // For standalone, only client mode is supported
+ if (clusterManager == STANDALONE && deployOnCluster) {
+ printErrorAndExit("Standalone cluster mode is currently not
supported.")
+ }
+
+ // For shells, only client mode is applicable
+ if (isShell(args.primaryResource) && deployOnCluster) {
+ printErrorAndExit("Cluster mode is not applicable to Spark shells.")
}
// If we're running a python app, set the main class to our specific
python runner
if (isPython) {
if (deployOnCluster) {
- printErrorAndExit("Cannot currently run Python driver programs on
cluster")
+ printErrorAndExit("Cluster mode is currently not supported for
python.")
--- End diff --
Cluster deployment mode
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---