Skip to content

Commit

Permalink
[SPARK-5966]<Spark-submit deploy-mode cluster is not compatible with …
Browse files Browse the repository at this point in the history
…master local>
  • Loading branch information
kevinyu98 committed Oct 22, 2015
1 parent 1d97332 commit 396c66a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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 @@ -266,6 +266,11 @@ object SparkSubmit {
}
}

// SPARK-5966, check deployMode CLUSTER and master local
if (clusterManager == LOCAL && deployMode == CLUSTER) {
printErrorAndExit("Cluster deploy mode is not compatible with master \"local\"")
}

// Update args.deployMode if it is null. It will be passed down as a Spark property later.
(args.deployMode, deployMode) match {
case (null, CLIENT) => args.deployMode = "client"
Expand Down

0 comments on commit 396c66a

Please sign in to comment.