Skip to content

Commit 396c66a

Browse files
committed
[SPARK-5966]<Spark-submit deploy-mode cluster is not compatible with master local>
1 parent 1d97332 commit 396c66a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ object SparkSubmit {
266266
}
267267
}
268268

269+
// SPARK-5966, check deployMode CLUSTER and master local
270+
if (clusterManager == LOCAL && deployMode == CLUSTER) {
271+
printErrorAndExit("Cluster deploy mode is not compatible with master \"local\"")
272+
}
273+
269274
// Update args.deployMode if it is null. It will be passed down as a Spark property later.
270275
(args.deployMode, deployMode) match {
271276
case (null, CLIENT) => args.deployMode = "client"

0 commit comments

Comments
 (0)