Hi,

Is there a Java API for getting
yarn.scheduler.capacity.maximum-am-resource-percent for a particular queue?

Unfortunately, QueueInfo
<https://github.com/apache/hadoop/blob/f67237cbe7bc48a1b9088e990800b37529f1db2a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/QueueInfo.java>
doesn't
seem to contain this info, so something like this wouldn't work:

Configuration conf = new Configuration(...);
Cluster cluster = new Cluster(conf);
QueueInfo queueInfo = cluster.getQueue("default");
Properties p = queueInfo.getProperties(); // This is empty! :(

Regards,
Benson

Reply via email to