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 "Wei Yan (JIRA)" <ji...@apache.org> on 2014/06/06 02:28:01 UTC

[jira] [Updated] (YARN-2128) SchedulerApplicationAttempt's amResource should be normalized instead of fetching from ApplicationSubmissionContext directly

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

Wei Yan updated YARN-2128:
--------------------------

    Attachment: YARN-2128.patch

> SchedulerApplicationAttempt's amResource should be normalized instead of fetching from ApplicationSubmissionContext directly
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-2128
>                 URL: https://issues.apache.org/jira/browse/YARN-2128
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Wei Yan
>            Assignee: Wei Yan
>         Attachments: YARN-2128.patch
>
>
> The amResource should be normalized.
> {code}
>     ApplicationSubmissionContext appSubmissionContext =
>         rmContext.getRMApps().get(applicationAttemptId.getApplicationId())
>             .getApplicationSubmissionContext();
>     if (appSubmissionContext != null) {
>         amResource = appSubmissionContext.getResource();
>         unmanagedAM = appSubmissionContext.getUnmanagedAM();
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)