One more question, in
https://slider.incubator.apache.org/docs/configuration/resources.html#placement
it says that "Once YARN adds support for this, Slider will support it." and
https://issues.apache.org/jira/browse/YARN-1042 for "add ability to specify
affinity/anti-affinity in container requests" is still unresolved. However
in I see ANTI_AFFINITY_REQUIRED in
https://github.com/apache/incubator-slider/blob/develop/slider-core/src/main/java/org/apache/slider/providers/PlacementPolicy.java#L57
and other places of the code. Is anti affinity implemented in slider before
YARN-1042, by other means independent from that YARN feature? Is there a
minimal version of YARN required to use anti affinity in Slider?

Thanks again,

Juan

On Mon, Dec 4, 2017 at 2:56 PM, Juan Rodríguez Hortalá <
juan.rodriguez.hort...@gmail.com> wrote:

> Thanks a lot Gour! I'll do so.
>
> Greetings,
>
> Juan
>
> On Fri, Dec 1, 2017 at 11:38 PM, Gour Saha <gs...@hortonworks.com> wrote:
>
>> Set yarn.component.placement.policy to 4 for the component in
>> resources.json to get anti- affinity.
>>
>> -Gour
>>
>> - Sent from my iPhone
>>
>> On Dec 1, 2017, at 7:14 PM, Juan Rodr?guez Hortal? <
>> juan.rodriguez.hort...@gmail.com<mailto:juan.rodriguez.hort...@gmail.com>>
>> wrote:
>>
>> Hi,
>>
>> I'm new to slider, and I'm trying to run an application for a distributed
>> database on slider using simple packaging. I have to specify a RPC port
>> that should be the same in all daemons running in each node. The problem
>> is
>> that if 2 containers for this application are running on the same node
>> then
>> they would try to use the same port. It is possible to specify somehow
>> that
>> we don't want to have more than one container for a specific component of
>> the application running in the same node?
>>
>> Thanks in advance.
>>
>> Juan
>>
>
>

Reply via email to