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

Varun Saxena commented on YARN-4224:
------------------------------------

[~leftnoteasy], replies to one of your comments.
bq. Since we're using UIDs for these objects, I feel that adding "-uid" to API 
is not necessary to me and could potentially confusing people.
This is necessary because hierarchical URL clashes with UID based URL. If we 
make entity type as an optional parameter, it should be optional for both 
hierarchical and UID based URLs'. So a URL for hierarchicial endpoint of 
entities would look like.

{{/ws/v2/timeline/apps/\{appid\}\entities}}

And for UID based endpoint it will be  
{{/ws/v2/timeline/apps/\{app UID\}\entities}}

This leads to a clash. Probably we can have a single endpoint and interpret 
whether its UID or app id itself, but wouldnt that be confusing too ?

> 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