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

Li Lu commented on YARN-4224:
-----------------------------

Actually I think the /ws/v2/timeline/apps/{app UID}/entities?entityType=... 
format looks fine. On querying entities, entity types is a query parameter but 
may not be mandatory. /ws/v2/timeline/apps/{app UID}/entities semantically 
should list all entities in one application. Implementation-wise, this may not 
be a good idea since there may be too many entities. There are solutions to 
this problem. For example, we can restrict /ws/v2/timeline/apps/{app 
UID}/entities will always return first 100 entities. With this design, if users 
would like to list all CONTAINER type entities, they can add entityType as one 
query parameter. 

> Change the ATSv2 reader side REST interface to conform to current REST APIs' 
> in YARN
> ------------------------------------------------------------------------------------
>
>                 Key: YARN-4224
>                 URL: https://issues.apache.org/jira/browse/YARN-4224
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: timelineserver
>    Affects Versions: YARN-2928
>            Reporter: Varun Saxena
>            Assignee: Varun Saxena
>              Labels: yarn-2928-1st-milestone
>         Attachments: YARN-4224-YARN-2928.01.patch, 
> YARN-4224-feature-YARN-2928.wip.02.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to