[
https://issues.apache.org/jira/browse/YARN-7863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16583360#comment-16583360
]
Sunil Govindan commented on YARN-7863:
--------------------------------------
Attaching an end-to-end working patch. (only anti-affinity support in
Scheduler, once [~cheersyang] patch is in, affinity will be supported for
placement spec as whole including node attributes
Test steps:
*Configuration*
{code:java}
<property>
<name>yarn.resourcemanager.placement-constraints.handler</name>
<value>scheduler</value>
</property>
{code}
*Add attributes:*
{{yarn nodeattributes -add localhost:java=1.8}}
*Run DS*
{{yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar
../share/hadoop/yarn/hadoop-yarn-applications-distributedshell-3.2.0-SNAPSHOT.jar
-shell_command sleep -shell_args 10 -num_containers 2 -placement_spec
NOTIN,java=1.8}}
> Modify placement constraints to support node attributes
> -------------------------------------------------------
>
> Key: YARN-7863
> URL: https://issues.apache.org/jira/browse/YARN-7863
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Sunil Govindan
> Assignee: Sunil Govindan
> Priority: Major
> Attachments: YARN-7863-YARN-3409.002.patch,
> YARN-7863-YARN-3409.003.patch, YARN-7863-YARN-3409.004.patch,
> YARN-7863-YARN-3409.005.patch, YARN-7863.v0.patch
>
>
> This Jira will track to *Modify existing placement constraints to support
> node attributes.*
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]