[ https://issues.apache.org/jira/browse/YARN-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13938091#comment-13938091 ]
Jian He commented on YARN-1839: ------------------------------- Uploaded a patch: - Removed the containerId != 1 check, changed RMAppAttempt to clear the node set after AM container is allocated. - Changed some NMToken related debug level to info so as to make debug easier. > Capacity scheduler preempts an AM out. AM attempt 2 fails to launch task > container with SecretManager$InvalidToken: No NMToken sent > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: YARN-1839 > URL: https://issues.apache.org/jira/browse/YARN-1839 > Project: Hadoop YARN > Issue Type: Bug > Components: applications, capacityscheduler > Affects Versions: 2.3.0 > Reporter: Tassapol Athiapinya > Assignee: Jian He > Priority: Critical > Attachments: YARN-1839.1.patch > > > Use single-node cluster. Turn on capacity scheduler preemption. Run MR sleep > job as app 1. Take entire cluster. Run MR sleep job as app 2. Preempt app1 > out. Wait till app 2 finishes. App 1 AM attempt 2 will start. It won't be > able to launch a task container with this error stack trace in AM logs: > {code} > 2014-03-13 20:13:50,254 INFO [AsyncDispatcher event handler] > org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: Diagnostics > report from attempt_1394741557066_0001_m_000000_1009: Container launch failed > for container_1394741557066_0001_02_000021 : > org.apache.hadoop.security.token.SecretManager$InvalidToken: No NMToken sent > for <host>:45454 > at > org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.newProxy(ContainerManagementProtocolProxy.java:206) > at > org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy$ContainerManagementProtocolProxyData.<init>(ContainerManagementProtocolProxy.java:196) > at > org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.getProxy(ContainerManagementProtocolProxy.java:117) > at > org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl.getCMProxy(ContainerLauncherImpl.java:403) > at > org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:138) > at > org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:369) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:722) > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)