[
https://issues.apache.org/jira/browse/YARN-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13601883#comment-13601883
]
Hitesh Shah commented on YARN-475:
----------------------------------
{code}
// get containerIdStr from environment
ContainerId containerId = ConverterUtils.toContainerId(containerIdStr);
ApplicationAttemptId applicationAttemptId =
containerId.getApplicationAttemptId();
{code}
> Remove ApplicationConstants.AM_APP_ATTEMPT_ID_ENV as it is no longer set in
> an AM's environment
> -----------------------------------------------------------------------------------------------
>
> Key: YARN-475
> URL: https://issues.apache.org/jira/browse/YARN-475
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Hitesh Shah
>
> AMs are expected to use ApplicationConstants.AM_CONTAINER_ID_ENV and derive
> the application attempt id from the container id.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira