Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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\"")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a place down there (L321) where we do checks like this. Please move it down there to be more consistent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Andrew: Thanks for pointing this out, I have made the code changes, run the test , and submit the pull request, can you help review?
Kevin


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'm going to nix this blank line when I merge (no action required on your part)

// 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