You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Benson Qiu <be...@salesforce.com> on 2016/12/22 00:45:11 UTC
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
RE: Hadoop Java API to get maximum-am-resource-percent
Posted by Bibinchundatt <bi...@huawei.com>.
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.qiu@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