Hi Benson,

org.pache.hadoop.yarn.api.records.QueueInfo currently don’t have interface to 
get configured am percentage for queue

Could you try using rest interface


¨       <RM:PORT>/ws/v1/cluster/scheduler



Regards

Bibin

From: Benson Qiu [mailto:benson....@salesforce.com]
Sent: 22 December 2016 06:15
To: user
Subject: Hadoop Java API to get maximum-am-resource-percent

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