Skip to content
Snippets Groups Projects
Commit 0bd0e5be authored by Akash Mishra's avatar Akash Mishra Committed by Andrew Or
Browse files

[SPARK-10695] [DOCUMENTATION] [MESOS] Fixing incorrect value informati…

…on for spark.mesos.constraints parameter.

Author: Akash Mishra <akash.mishra20@gmail.com>

Closes #8816 from SleepyThread/constraint-fix.
parent f3b727c8
No related branches found
No related tags found
No related merge requests found
...@@ -189,10 +189,10 @@ using `conf.set("spark.cores.max", "10")` (for example). ...@@ -189,10 +189,10 @@ using `conf.set("spark.cores.max", "10")` (for example).
You may also make use of `spark.mesos.constraints` to set attribute based constraints on mesos resource offers. By default, all resource offers will be accepted. You may also make use of `spark.mesos.constraints` to set attribute based constraints on mesos resource offers. By default, all resource offers will be accepted.
{% highlight scala %} {% highlight scala %}
conf.set("spark.mesos.constraints", "tachyon=true;us-east-1=false") conf.set("spark.mesos.constraints", "tachyon:true;us-east-1:false")
{% endhighlight %} {% endhighlight %}
For example, Let's say `spark.mesos.constraints` is set to `tachyon=true;us-east-1=false`, then the resource offers will be checked to see if they meet both these constraints and only then will be accepted to start new executors. For example, Let's say `spark.mesos.constraints` is set to `tachyon:true;us-east-1:false`, then the resource offers will be checked to see if they meet both these constraints and only then will be accepted to start new executors.
# Mesos Docker Support # Mesos Docker Support
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment