Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how much resource a yarn application requests Resource Manager to run?

how much resource a yarn application requests Resource Manager to run?

New Contributor

When a yarn application is about to run, it needs to send a request for the container allocation. How does it know that it needs certain amount of resource to run in certain amount of time. How do I get that by REST api?

1 REPLY 1
Highlighted

Re: how much resource a yarn application requests Resource Manager to run?

Rising Star
@naveen r

The amount of resource a Yarn application will request is completely dependent on the type of Application. For MapReduce, it is generally based on the inputsplit/no. of reducers configured and the memory/vcores configured per mapper/reducer in the JobConf.

To check how much Resources are currently being used by a single application, you can use the following Rest API and check the fields "allocatedMB","allocatedVCores" and "runningContainers"

  GET http://<rm http address:port>/ws/v1/cluster/apps/<applicationId>