Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10219

YARN service placement constraints is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.1.0, 3.2.0, 3.1.1, 3.1.2, 3.3.0, 3.2.1, 3.1.3
    • 3.3.0, 3.4.0
    • yarn
    • None

    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>

      Attachments

        1. YARN-10219.005.patch
          12 kB
          Eric Yang
        2. YARN-10219.004.patch
          12 kB
          Eric Yang
        3. YARN-10219.003.patch
          11 kB
          Eric Yang
        4. YARN-10219.002.patch
          11 kB
          Eric Yang
        5. YARN-10219.001.patch
          11 kB
          Eric Yang

        Activity

          People

            eyang Eric Yang
            eyang Eric Yang
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: