Github user dragos commented on a diff in the pull request:
https://github.com/apache/spark/pull/10768#discussion_r50090479
--- Diff:
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosClusterScheduler.scala
---
@@ -142,6 +142,8 @@ private[spark] class MesosClusterScheduler(
private val queuedDriversState =
engineFactory.createEngine("driverQueue")
private val launchedDriversState =
engineFactory.createEngine("launchedDrivers")
private val pendingRetryDriversState =
engineFactory.createEngine("retryList")
+ private val driverOfferConstraints =
+ parseConstraintString(conf.get("spark.mesos.constraints", ""))
--- End diff --
This is the problem: This setting is read only once, when the dispatcher is
started. What you want is to pick up the constraints set on the submitted job.
Have a look at how other job-specific settings are treated in the code (there's
a submitProperties variable, or something similar).
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]