hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Yan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-6048) YarnClient API call that is supposed to return containers of a previous attempt returns containers of the current application attempt
Date Tue, 03 Jan 2017 05:52:58 GMT
David Yan created YARN-6048:
-------------------------------

             Summary: YarnClient API call that is supposed to return containers of a previous
attempt returns containers of the current application attempt 
                 Key: YARN-6048
                 URL: https://issues.apache.org/jira/browse/YARN-6048
             Project: Hadoop YARN
          Issue Type: Bug
          Components: timelineserver, yarn
    Affects Versions: 2.7.3
         Environment: Ubuntu 16.10, Hadoop 2.7.3, Java 1.8
            Reporter: David Yan


I have enabled the timeline server.
Sample code:

{code}
YarnClient yarnClient;
...
List<ContainerReport> containerReports = yarnClient.getContainers(somePreviousAttemptId);
{code}

YarnClient.getContainers(ApplicationAttemptId) returns the containers of the *current* attempt
instead of the given attempt. This is true up until the application is actually terminated.
After the application is terminated, the call returns the correct container list.






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org


Mime
View raw message