[
https://issues.apache.org/jira/browse/YARN-4224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15070256#comment-15070256
]
Varun Saxena commented on YARN-4224:
------------------------------------
bq. For UID based queries we can pass type as a query parameter. For the
hierarchical endpoints, type is modeled as a part of entity ids (we have to do
this to uniquely id an entity).
IIUC, you mean that we can have endpoint as /ws/v2/timeline/apps/\{app
UID\}/entities?entityType=... for UID
and,
endpoint as /ws/v2/timeline/apps/\{app UID\}/entities/\{entitytype\} for
hierarchical REST URL.
Lets reach an agreement on this then
Frankly a query without entity type wont be very useful, but lets do this for
differentiation. Any issues in making a check for entityType not being supplied
though(other than that it is a query param) ? Currently query without entity
type is not supported. Some changes, although minor, will have to be made in
storage layer for this.
> 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)