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.

Yarn Application get Accepted state.

Solved Go to solution

Yarn Application get Accepted state.

When I running yarn app, I often get some app in queue( state ACCEPTED). But you can see I still have free resource.

So why app in queue ?

10591-yarn-rm4.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Yarn Application get Accepted state.

@Hoang Le if you look at the Max Application Master Resources,Used Application Master Resources both are same(4G), so this is hitting resource cap for application master and waiting to allocate Application Master container.

5 REPLIES 5

Re: Yarn Application get Accepted state.

@Hoang Le if you look at the Max Application Master Resources,Used Application Master Resources both are same(4G), so this is hitting resource cap for application master and waiting to allocate Application Master container.

Re: Yarn Application get Accepted state.

@Rajkumar Singh So how can I define Max Application Master Resources.

In default Configured Max Application Master Limit is set to 20%. If I increase figure, Max Application Master Resources increase. But how this Max Application Master Resources is calculated ?

Re: Yarn Application get Accepted state.

@Hoang Le the maximum is calculated based on yarn.scheduler.capacity.maximum-am-resource-percent, seems you are launching am for one of the job which is configured to get 4GB of memory thats why you are seeing used am resources as 4GB which is the max-am-resource.

Highlighted

Re: Yarn Application get Accepted state.

@Rajkumar Singh

I find this doc from hortonworks

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_yarn-resource-management/content/setting...

and this from apache hadoop:

10596-yarn-scheduler.png

I know if I change yarn.scheduler.capacity.maximum-am-resource-percent then Max Application Master Resources will change. But I want to know which configure it depend to calculate.

For example if true I set yarn.scheduler.capacity.maximum-am-resource-percent = 1 (100%)

then Max Application Master Resources balance with yarn.nodemanager.resource.memory-mb

Re: Yarn Application get Accepted state.

@Hoang Le this is to Get the maximum am resource percent per queue configured capacity. yarn.nodemanager.resource.memory-mb is the memory that a nodemanger announce to RM.

Don't have an account?
Coming from Hortonworks? Activate your account here