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

SchedulerConf Mutation API does not Allow Stop and Remove Queue in a single call

    XMLWordPrintableJSON

Details

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

    Description

      SchedulerConf Mutation API does not Allow Stop and Remove Queue in a single call. The queue has to be stopped before removing and so it is useful to allow both Stop and remove queue in a single call.

      Repro:

      Capacity-Scheduler.xml:
      
      yarn.scheduler.capacity.root.queues = new, default, dummy
      yarn.scheduler.capacity.root.default.capacity = 60
      yarn.scheduler.capacity.root.dummy.capacity = 30
      yarn.scheduler.capacity.root.new.capacity = 10   
      
      
      curl -v -X PUT -d @abc.xml -H "Content-type: application/xml" 'http://<RM_IP>:8088/ws/v1/cluster/scheduler-conf'
      
      abc.xml
      
      <sched-conf>
            <update-queue>
                <queue-name>root.default</queue-name>
                <params>
                  <entry>
                    <key>capacity</key>
                    <value>70</value>
                  </entry>
                </params>
              </update-queue>
              <update-queue>
                <queue-name>root.new</queue-name>
                <params>
                  <entry>
                    <key>state</key>
                    <value>STOPPED</value>
                  </entry>
                </params>
              </update-queue>
              <remove-queue>root.new</remove-queue>
            </sched-conf>  
       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: