Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5734 OrgQueue for easy CapacityScheduler queue configuration management
  3. YARN-10109

Allow stop and convert from leaf to parent queue in a single Mutation API call

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0, 3.2.2
    • capacity scheduler
    • None
    • Reviewed

    Description

      SchedulerConf Mutation API does not Allow Stop and Adding queue under an existing Leaf Queue in a single call. 

      Repro:
       

      Capacity-Scheduler.xml: 
      
      yarn.scheduler.capacity.root.queues = default
      yarn.scheduler.capacity.root.default.capacity = 100 
      
      cat abc.xml 
      
      <sched-conf>
            <add-queue>
                <queue-name>root.default.v1</queue-name>
                <params>
                  <entry>
                    <key>capacity</key>
                    <value>100</value>
                  </entry>
                </params>
              </add-queue>
              <update-queue>
                <queue-name>root.default</queue-name>
                <params>
                  <entry>
                    <key>state</key>
                    <value>STOPPED</value>
                  </entry>
                </params>
              </update-queue>
            </sched-conf>  
      
      [yarn@pjoseph-1 tmp]$ curl --negotiate -u : -X PUT -d @add.xml -H "Content-type: application/xml" 'http://<RM_HOST>:8088/ws/v1/cluster/scheduler-conf?user.name=yarn'
      Failed to re-init queues : Can not convert the leaf queue: root.default to parent queue since it is not yet in stopped state. Current State : RUNNING
       

      Attachments

        1. YARN-10109-004.patch
          6 kB
          Prabhu Joseph
        2. YARN-10109-003.patch
          6 kB
          Prabhu Joseph
        3. YARN-10109-002.patch
          6 kB
          Prabhu Joseph
        4. YARN-10109-001.patch
          6 kB
          Prabhu Joseph

        Activity

          People

            prabhujoseph Prabhu Joseph
            prabhujoseph Prabhu Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: