Details
Description
YARN service placement constraint does not work with node label nor node attributes. Example of placement constraints:
"placement_policy": { "constraints": [ { "type": "AFFINITY", "scope": "NODE", "node_attributes": { "label":["genfile"] }, "target_tags": [ "ping" ] } ] },
Node attribute added:
./bin/yarn nodeattributes -add "host-3.example.com:label=genfile"
Scheduling activities shows:
<diagnostic> Node does not match partition or placement constraints, unsatisfied PC expression="in,node,ping", target-type=ALLOCATION_TAG </diagnostic>
<count>1</count>
<nodeIds>host-3.example.com:45454</nodeIds>