[ 
https://issues.apache.org/jira/browse/YARN-5561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15457045#comment-15457045
 ] 

Li Lu commented on YARN-5561:
-----------------------------

I've got offline discussions with several folks on if we should have concepts 
like "app-attempt" and "container". From a designer's perspective, app-attempts 
and containers should not be included in timeline APIs, but from YARN users 
perspective, requesting app-attempt and container level information seems to be 
very natural operations, especially since both concepts are top level concepts 
in YARN. So I'm relatively fine with having terms like "containers" and 
"app-attempts" exposed in timeline APIs, but we may want to be very careful to 
not to give an impression that attempts and containers are on the hierarchical 
order as flows and flowruns. 

So how about having two different hierarchical orders:
Order 1, native timeline order: cluster, user, flow, flow-run, application, 
entity
Order 2, YARN application order: application, app-attempt, container

Once we're not mixing the two orders in APIs, the logic should be clear. 
Thoughts? 

> [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: 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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to