gpt4 book ai didi

Hadoop 纱 : Get a list of available queues

转载 作者:可可西里 更新时间:2023-11-01 14:15:49 29 4
gpt4 key购买 nike

有没有办法从命令行获取所有可用 YARN 队列的列表,而无需解析 capacity-scheduler.xml 文件?

我使用的是 Hadoop 2.7.2 版

最佳答案

您可以使用 hadoop 内置的 mapred 命令行工具

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
======================

它提供了一个简单而漂亮的层次结构输出

关于Hadoop 纱 : Get a list of available queues,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42308269/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com