How to retrieve max containers available from YARN in Hadoop Cluster? -


how total count i.e max capacity of containers resource manager of yarn in hadoop cluster. did try rest api's , jmx metrics getting total allocated containers , pending containers.so there way can retrieve max containers can created count?

in yarn, have minimum allocation property, container have minimuum of value. based on can caluculate maximum number of containers can launched (divide total memory available yarn). think way maximum containers can launched.

so in programs, these 2 properties , doing math required result.

properties :

    <name>yarn.scheduler.minimum-allocation-mb</name>     <value>1024</value>     <name>yarn.scheduler.minimum-allocation-mb</name>     <value>8192</value> 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

c# - MSDN OneNote Api: Navigate to never before opened page without opening a OneNote Application Window -