Skip to content

Commit

Permalink
[SPARK-5966][WIP] Spark-submit deploy-mode cluster is not compatible …
Browse files Browse the repository at this point in the history
…with master local>

… master local>

Author: Kevin Yu <qyu@us.ibm.com>

Closes apache#9220 from kevinyu98/working_on_spark-5966.
  • Loading branch information
kevinyu98 authored and srowen committed Oct 26, 2015
1 parent 05c4bdb commit 616be29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ object SparkSubmit {
case (STANDALONE, CLUSTER) if args.isR =>
printErrorAndExit("Cluster deploy mode is currently not supported for R " +
"applications on standalone clusters.")
case (LOCAL, CLUSTER) =>
printErrorAndExit("Cluster deploy mode is not compatible with master \"local\"")
case (_, CLUSTER) if isShell(args.primaryResource) =>
printErrorAndExit("Cluster deploy mode is not applicable to Spark shells.")
case (_, CLUSTER) if isSqlShell(args.mainClass) =>
Expand Down

0 comments on commit 616be29

Please sign in to comment.