Created 07-09-2018 07:11 AM
is there cli command to list all the yarn queues , however I can check queues from the ambari . but is there command i can check with that ?
Created 07-09-2018 07:30 AM
@Anurag Mishra
You can use Ambari CS view or RM UI.
Usng command line if you want to get the details then you might want to try the following , however you will have to parse the output a bit
# curl http://$ResourceManager_Address:8088/ws/v1/cluster/scheduler | grep --color 'queueName'
.
Created 07-09-2018 07:44 AM
Something like this:
# curl -s http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler | grep 'queueName' | python -c "import sys, json; print json.load(sys.stdin)['scheduler']['schedulerInfo']['queues']['queue'][0]['queueName']" # curl -s http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler | grep 'queueName' | python -c "import sys, json; print json.load(sys.stdin)['scheduler']['schedulerInfo']['queues']['queue'][1]['queueName']" # curl -s http://hdfcluster3.example.com:8088/ws/v1/cluster/scheduler | grep 'queueName' | python -c "import sys, json; print json.load(sys.stdin)['scheduler']['schedulerInfo']['queues']['queue'][2]['queueName']"
Using a simple Shell script we can keep increasing the index in the same Curl command like
['queue'][3], ['queue'][4]