Support Questions

Find answers, ask questions, and share your expertise

YARN Applications wait for long time in Accepted State

avatar
Contributor

Hello All,

We are using HDP-2.5.6 in Production cluster. We have 5 queues configured in capacity scheduler.

We have given 840 GB of total memory to Yarn. Preemption is enabled for all queue.

Out of that for 'talend' queue we have given 25% as min capacity and 100% as max capacity. Attached screenshot for 'talend' queue talend-queue.png.

The problem is, though 'talend' queue has lot of resources available applications are going into accepted state for long time. Attached screenshot for accepted application accepted-application.png. Some applications are even in accepted state for more that 5 hours.

Diagnostic section is showing wrong AM resource.

In ResourceManager logs, we are getting following message:

2018-08-10 06:12:13,129 INFO  capacity.LeafQueue (LeafQueue.java:activateApplications(662)) - Not activating application application_1529949441873_131872 as  amIfStarted: <memory:348160, vCores:85> exceeds amLimit: <memory:344064, vCores:1>
2018-08-10 06:12:13,129 INFO  capacity.LeafQueue (LeafQueue.java:activateApplications(662)) - Not activating application application_1529949441873_131873 as  amIfStarted: <memory:348160, vCores:85> exceeds amLimit: <memory:344064, vCores:1>
2018-08-10 06:12:13,129 INFO  capacity.LeafQueue (LeafQueue.java:activateApplications(662)) - Not activating application application_1529949441873_131874 as  amIfStarted: <memory:348160, vCores:85> exceeds amLimit: <memory:344064, vCores:1>

We have AM resources available in queue but it shows exceeds amLimit message. Also amLimit is not correct.

Why applications are going in accepted state though we have lot of resources available at queue level?

Please suggest.

1 ACCEPTED SOLUTION

avatar
Contributor

Resource Manager Restart cleans cache of RM and resolves issue.

View solution in original post

12 REPLIES 12

avatar
Contributor

avatar
Super Collaborator

Hi @Bhushan Kandalkar

It seems as if you crossed a vCore limit - not memory.
In Yarn Queue Manager what calculator are you using ? Default or Dominant ? If Dominant - swithc to Default.
In Ambari >>> Yarn >>> Configs >>> Settings - make sure CPU Scheduling & CPU Isolation are off (unless you have switched them on intentionally and you are using cGroups accordingly).
Also in In Ambari >>> Yarn >>> Configs >>> Settings make sure you sufficient "number of virtual cores" & "Maximum Container Size" (it should be the number of cores you have in your datanodes minus 4-6 cores for OS).


avatar
Contributor

Resource Manager Restart cleans cache of RM and resolves issue.