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

Rohith Sharma K S commented on YARN-5561:
-----------------------------------------

Looking into code base for reader for supporting these REST end points. I see 
that ApplicationTable schema is defined with row key 
*clusterId!userName!flowName!flowRunId!AppId*. 
# */apps* without userId and flowName should be able to read. Currently it is 
mandatory that to read apps to provide userId and flowName.
# */apps/\{app-id\}/app-attempts* can be redirect to existing getEntity for 
YARN-APPLICATIOIN-ENTITY. 
# */apps/\{app-id\}/app-attempt/\{app-attempt-id\}/containers*.  As per design, 
YARN_APPLICATION_ATTEMPT and YARN_CONTAINERS are stored as general entities. 
Reading will be same as others user entities. I think there should be another 
hbase table that stores YARN specific entities. Otherwise it is big overhead 
for clients to parse output to know about its parent entity.

> [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: Bug
>          Components: timelinereader
>            Reporter: Rohith Sharma K S
>            Assignee: Rohith Sharma K S
>
> 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