[
https://issues.apache.org/jira/browse/YARN-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737215#comment-13737215
]
Zhijie Shen commented on YARN-987:
----------------------------------
It's not guranteed that the implementation of historystore will use hashmap.
{code}
+ HashMap<ApplicationId, ApplicationHistoryData> applicationsHistory =
+ (HashMap<ApplicationId, ApplicationHistoryData>) historyStore
+ .getAllApplications();
{code}
{code}
+ HashMap<ApplicationAttemptId, ApplicationAttemptHistoryData>
applicationAttemptsHistory =
+ (HashMap<ApplicationAttemptId, ApplicationAttemptHistoryData>)
historyStore
+ .getApplicationAttempts(appId);
{code}
{code}
+ HashMap<ContainerId, ContainerHistoryData> containersHistory =
+ (HashMap<ContainerId, ContainerHistoryData>) historyStore
+ .getContainers(appAttemptId);
{code}
Another question, why does ContainerHistoryData not require ContainerReport?
> Adding History Service to use Store and converting Historydata to Report
> ------------------------------------------------------------------------
>
> Key: YARN-987
> URL: https://issues.apache.org/jira/browse/YARN-987
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Mayank Bansal
> Assignee: Mayank Bansal
> Attachments: YARN-987-1.patch
>
>
--
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