Uh oh!
There was an error while loading. Please reload this page.
[SPARK-12832][MESOS] Fix dispatcher does not have a constraints config - #10768
[SPARK-12832][MESOS] Fix dispatcher does not have a constraints config#10768Astralidea wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
There's a typo there. I think the comment isn't necessary though, the name of the variable is clear enough.
dragos
commented
Jan 15, 2016
ok to test |
SparkQA
commented
Jan 15, 2016
Test build #49460 has finished for PR 10768 at commit
|
Astralidea
commented
Jan 16, 2016
@dragos A question, should I also change MesosClusterDispatcher.scala code for cmd argument in? |
SparkQA
commented
Jan 16, 2016
Test build #49516 has finished for PR 10768 at commit
|
SparkQA
commented
Jan 16, 2016
Test build #49517 has finished for PR 10768 at commit
|
dragos
commented
Jan 16, 2016
@Astralidea I don't understand your question, sorry. |
Astralidea
commented
Jan 16, 2016
@dragos |
dragos
commented
Jan 18, 2016
Thanks for clarifying. I think this is a bit confusing. You want to respect the Mesos constraints that belong to each particular job that is submitted to the dispatcher. Those configuration options should come from a submission request, not from the Spark config options that are used to launch the dispatcher (probably found inside Right now, the code would only launch drivers on one particular set of constraints, defined when the dispatcher is launched. I believe the better solution is to allow each Spark job to define its Mesos constraints independently, when submitting. |
BrickXu
commented
Jan 18, 2016
@dragos great idea! |
Astralidea
commented
Jan 19, 2016
@dragos Thank you for your answers. so the code may does not need to change other. |
There was a problem hiding this comment.
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).
dragos
commented
Jan 19, 2016
@Astralidea The code needs to change, but probably the change is minor. See my comment |
andrewor14
commented
Feb 1, 2016
FYI #10949 is another patch for the same issue. |
andrewor14
commented
Feb 1, 2016
Also @Astralidea please change the title to include |
Astralidea
commented
Feb 2, 2016
@dragos Sorry about busy these days, In your comment, The feature is great. Because if I change the configuration I did not redeploy mesos-dispacher, but In my System it is enough to use I didn't change config everyday, it is merely stable. and I did not figure out how to reload configure every time. If I have time to do this I will push another patch. |
dragos
commented
Feb 2, 2016
@Astralidea I think we should focus on getting #10949 in, which implements exactly this behavior. |
Astralidea
commented
Feb 3, 2016
@dragos ok, I hope this issue could fix in next version. only read once spark.mesos.constraints is enough. |
before offer resouce, first meet meetsConstraints to filter some offer.