hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Kanter (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (YARN-1795) After YARN-713, using FairScheduler can cause an InvalidToken Exception for NMTokens
Date Mon, 17 Mar 2014 20:40:46 GMT

     [ https://issues.apache.org/jira/browse/YARN-1795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Robert Kanter resolved YARN-1795.

    Resolution: Duplicate
      Assignee: Robert Kanter  (was: Karthik Kambatla)

I tried the patch posted at YARN-1839 and it fixes the problem.  Marking this as a duplicate
of that.

> After YARN-713, using FairScheduler can cause an InvalidToken Exception for NMTokens
> ------------------------------------------------------------------------------------
>                 Key: YARN-1795
>                 URL: https://issues.apache.org/jira/browse/YARN-1795
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Robert Kanter
>            Assignee: Robert Kanter
>            Priority: Blocker
>         Attachments: org.apache.oozie.action.hadoop.TestMapReduceActionExecutor-output.txt,
> Running the Oozie unit tests against a Hadoop build with YARN-713 causes many of the
tests to be flakey.  Doing some digging, I found that they were failing because some of the
MR jobs were failing; I found this in the syslog of the failed jobs:
> {noformat}
> 2014-03-05 16:18:23,452 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl:
Diagnostics report from attempt_1394064846476_0013_m_000000_0: Container launch failed for
container_1394064846476_0013_01_000003 : org.apache.hadoop.security.token.SecretManager$InvalidToken:
No NMToken sent for
>        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:744)
> {noformat}
> I did some debugging and found that the NMTokenCache has a different port number than
what's being looked up.  For example, the NMTokenCache had one token with address
but ContainerManagementProtocolProxy.java:119 is looking for The 58213
address comes from ContainerLauncherImpl's constructor. So when the Container is being launched
it somehow has a different port than when the token was created.
> Any ideas why the port numbers wouldn't match?
> Update: This also happens in an actual cluster, not just Oozie's unit tests

This message was sent by Atlassian JIRA

View raw message