hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Qiu <benson....@salesforce.com>
Subject Hadoop Java API to get maximum-am-resource-percent
Date Thu, 22 Dec 2016 00:45:11 GMT
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

Mime
View raw message