Sangjin Lee commented on YARN-5561:

I recognize the pain point you're mentioning in terms of wanting the data in 
the form of {{ApplicationAttemptReport}} or {{ContainerReport}}. That said, 
adding a new daemon should not be done lightly. I am in the opinion that the 
bar above which a new component is added to the system should be high. I'm not 
sure if this meets that bar.

Also, please note that what's contained in the current REST output would likely 
to be a *superset* of {{*Report}}; in other words, there are things in the 
entity API that are not in the {{*Report}}. Things like the uid and the 
currently discussed entity id prefix come to mind. So we cannot simply replace 
the return type, or things will be crippled.

As we briefly discussed during the call the other day, what we need is a 
translation layer that can create a Report object out of the timeline entity. 
If we implement such a translation layer, would it satisfy this? That way, the 
client gets the full timeline entity information, and it can convert it into a 
report object fairly easily without writing much code.

> [Atsv2] : Support for ability to retrieve apps/app-attempt/containers and 
> entities via REST
> -------------------------------------------------------------------------------------------
>                 Key: YARN-5561
>                 URL: https://issues.apache.org/jira/browse/YARN-5561
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: timelinereader
>            Reporter: Rohith Sharma K S
>            Assignee: Rohith Sharma K S
>         Attachments: 0001-YARN-5561.YARN-5355.patch, YARN-5561.02.patch, 
> YARN-5561.03.patch, YARN-5561.patch, YARN-5561.v0.patch
> ATSv2 model lacks retrieval of {{list-of-all-apps}}, 
> {{list-of-all-app-attempts}} and {{list-of-all-containers-per-attempt}} via 
> REST API's. And also it is required to know about all the entities in an 
> applications.
> It is pretty much highly required these URLs for Web  UI.
> New REST URL would be 
> # GET {{/ws/v2/timeline/apps}}
> # GET {{/ws/v2/timeline/apps/\{app-id\}/appattempts}}.
> # GET 
> {{/ws/v2/timeline/apps/\{app-id\}/appattempts/\{attempt-id\}/containers}}
> # GET {{/ws/v2/timeline/apps/\{app id\}/entities}} should display list of 
> entities that can be queried.  

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to