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 "Zhijie Shen (JIRA)" <ji...@apache.org> on 2013/11/27 00:02:36 UTC

[jira] [Updated] (YARN-1023) [YARN-321] Webservices REST API's support for Application History

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

Zhijie Shen updated YARN-1023:
------------------------------

    Attachment: YARN-1023.2.patch

[~devaraj.k], thanks for the initial patches. I've created a new one. Like YARN-954, I created a common WebServices class, which forks "getApps", "getApp" and "getAppAttempts" from RMWebServices, but uses ApplicationContext for the data source. After merging branch YARN-321 back to trunk, we can refactor RMWebServices to extend WebServices. For now, only AHSWebServices extend it.

For the REST API urls, I choose to make them be compatible with what RMWebServices currently constructs:
{code}
Get applications: http://ahs_server:8188/ws/v1/applicationhistory/apps
Get application: http://ahs_server:8188/ws/v1/applicationhistory/apps/{appId}
Get application attempts: http://ahs_server:8188/ws/v1/applicationhistory/apps/{appId}/appattempts
Get application attempt: http://ahs_server:8188/ws/v1/applicationhistory/apps/{appId}/appattempts/{appAttemptId}
Get containers: http://ahs_server:8188/ws/v1/applicationhistory/apps/{appId}/appattempts/{appAttemptId}/containers
Get container: http://ahs_server:8188/ws/v1/applicationhistory/apps/{appId}/appattempts/{appAttemptId}/containers/{containerId}
{code}
Another choice is to collapse the urls to show the last two sections. Any idea?

I wrote the test cases for AHSWebServices, but I didn't heavily test them as TestRMWebServices, because the functions are similar, and I just wanted to verify the data from ApplicatonContext has been used to fill the json/xml output.

Moreover, we need to have a document to introduce the REST APIs like what we have for RM/NM web services, but I'd like to separate all the documentation work in another jira.

> [YARN-321] Webservices REST API's support for Application History
> -----------------------------------------------------------------
>
>                 Key: YARN-1023
>                 URL: https://issues.apache.org/jira/browse/YARN-1023
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>    Affects Versions: YARN-321
>            Reporter: Devaraj K
>            Assignee: Zhijie Shen
>         Attachments: YARN-1023-v0.patch, YARN-1023-v1.patch, YARN-1023.2.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)