hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bibinchundatt <bibin.chund...@huawei.com>
Subject RE: Hadoop Java API to get maximum-am-resource-percent
Date Wed, 28 Dec 2016 04:27:54 GMT
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



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


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! :(

View raw message