Hong Zhiguo created YARN-2371:

             Summary: Wrong NMToken is issued when NM preserving restart with 
containers running
                 Key: YARN-2371
                 URL: https://issues.apache.org/jira/browse/YARN-2371
             Project: Hadoop YARN
          Issue Type: Bug
          Components: resourcemanager
            Reporter: Hong Zhiguo
            Assignee: Hong Zhiguo

When application is submitted with 
"ApplicationSubmissionContext.getKeepContainersAcrossApplicationAttempts() == 
true", and NM is restarted with containers running, wrong NMToken is issued to 
AM through RegisterApplicationMasterResponse.
See the NM log:
2014-07-30 11:59:58,941 ERROR 
 Unauthorized request to start container.-
NMToken for application attempt : appattempt_1406691610864_0002_000001 was used 
for starting container with container token issued for application attempt : 

The reason is in below code:
createAndGetNMToken(String applicationSubmitter,
      ApplicationAttemptId appAttemptId, Container container) {
          Token token =
                container.getNodeId(), applicationSubmitter);
"appAttemptId" instead of "container.getId().getApplicationAttemptId()" should 
be passed to "createNMToken".

This message was sent by Atlassian JIRA

Reply via email to