YARN-9937. addendum: Add missing queue configs in RMWebService#CapacitySchedulerQueueInfo. Contributed by Prabhu Joseph
This commit is contained in:
parent
6c20512b68
commit
448ffb12ec
@ -402,7 +402,7 @@ public CapacitySchedulerConfiguration(Configuration configuration,
|
||||
}
|
||||
}
|
||||
|
||||
static String getQueuePrefix(String queue) {
|
||||
public static String getQueuePrefix(String queue) {
|
||||
String queueName = PREFIX + queue + DOT;
|
||||
return queueName;
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ public class CapacitySchedulerQueueInfo {
|
||||
CapacitySchedulerConfiguration conf = cs.getConfiguration();
|
||||
queueAcls = new QueueAclsInfo();
|
||||
for (Map.Entry<AccessType, AccessControlList> e : conf
|
||||
.getAcls(queueName).entrySet()) {
|
||||
.getAcls(queuePath).entrySet()) {
|
||||
QueueAclInfo queueAcl = new QueueAclInfo(e.getKey().toString(),
|
||||
e.getValue().getAclString());
|
||||
queueAcls.add(queueAcl);
|
||||
@ -139,8 +139,8 @@ public class CapacitySchedulerQueueInfo {
|
||||
|
||||
String aclApplicationMaxPriority = "acl_" +
|
||||
StringUtils.toLowerCase(AccessType.APPLICATION_MAX_PRIORITY.toString());
|
||||
String priorityAcls = conf.get(queuePath + aclApplicationMaxPriority,
|
||||
conf.ALL_ACL);
|
||||
String priorityAcls = conf.get(CapacitySchedulerConfiguration
|
||||
.getQueuePrefix(queuePath) + aclApplicationMaxPriority, conf.ALL_ACL);
|
||||
|
||||
QueueAclInfo queueAcl = new QueueAclInfo(
|
||||
AccessType.APPLICATION_MAX_PRIORITY.toString(), priorityAcls);
|
||||
|
Loading…
Reference in New Issue
Block a user