<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: command to list all the yarn  queues in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/command-to-list-all-the-yarn-queues/m-p/188773#M150866</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE&gt;# curl -s &lt;A href="http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler" target="_blank"&gt;http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler&lt;/A&gt; | grep 'queueName' | python -c "import sys, json; print json.load(sys.stdin)['scheduler']['schedulerInfo']['queues']['queue'][0]['queueName']"

# curl -s &lt;A href="http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler" target="_blank"&gt;http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler&lt;/A&gt; | grep 'queueName' | python -c "import sys, json; print json.load(sys.stdin)['scheduler']['schedulerInfo']['queues']['queue'][1]['queueName']"

# curl -s &lt;A href="http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler" target="_blank"&gt;http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler&lt;/A&gt; | grep 'queueName' | python -c "import sys, json; print json.load(sys.stdin)['scheduler']['schedulerInfo']['queues']['queue'][2]['queueName']"&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Using a simple Shell script we can keep increasing the index in the same  Curl command like &lt;/P&gt;&lt;P&gt;['queue'][3],  ['queue'][4]&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 09 Jul 2018 14:44:36 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-07-09T14:44:36Z</dc:date>
  </channel>
</rss>

