fog*_*rit 7 hadoop hadoop-yarn
有没有一种方法可以从命令行获取所有可用的YARN队列的列表,而无需求助于分析capacity-scheduler.xml文件?
我正在使用Hadoop 2.7.2版
一种方法是使用ResourceManager REST API,例如:
curl '<resourcemanager_host>:<http_port>/ws/v1/cluster/scheduler' | jq '.scheduler.schedulerInfo.queues.queue[] | .queueName’
Run Code Online (Sandbox Code Playgroud)
将列出所有顶级队列。
curl '<resourcemanager_host>:<http_port>/ws/v1/cluster/scheduler' | jq .
Run Code Online (Sandbox Code Playgroud)
为您提供有关调度程序/队列的所有信息,因此jq您可以使用其中的任何信息。
You can use also the hadoop builtin mapred command-line tool
me@here.com$ mapred queue -list
======================
Queue Name : root.tenant1
Queue State : running
Scheduling Info : Capacity: 0.0, MaximumCapacity: UNDEFINED, CurrentCapacity: 0.0
======================
Queue Name : root.tenant1.default
Queue State : running
Scheduling Info : Capacity: 0.0, MaximumCapacity: UNDEFINED, CurrentCapacity: 0.0
======================
Queue Name : root.tenant1.users
Queue State : running
Scheduling Info : Capacity: 0.0, MaximumCapacity: UNDEFINED, CurrentCapacity: 0.0
======================
Queue Name : root.tenant2
Queue State : running
Scheduling Info : Capacity: 0.0, MaximumCapacity: UNDEFINED, CurrentCapacity: 0.0
======================
Queue Name : root.tenant2.default
Queue State : running
Scheduling Info : Capacity: 0.0, MaximumCapacity: UNDEFINED, CurrentCapacity: 0.0
======================
Queue Name : root.tenant2.users
Queue State : running
Scheduling Info : Capacity: 0.0, MaximumCapacity: UNDEFINED, CurrentCapacity: 0.0
======================
Run Code Online (Sandbox Code Playgroud)
it provides a nice output with hierarchy
| 归档时间: |
|
| 查看次数: |
4903 次 |
| 最近记录: |