You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Ajith S (JIRA)" <ji...@apache.org> on 2017/01/03 11:18:58 UTC

[jira] [Issue Comment Deleted] (YARN-6048) YarnClient API call that is supposed to return containers of a previous attempt returns containers of the current application attempt

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

Ajith S updated YARN-6048:
--------------------------
    Comment: was deleted

(was: Hi [~sunilg] and [~davidyan]
Would like to work on this, can assign this to me.?)

> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org