hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1838) Timeline service getEntities API should provide ability to get entities from given id
Date Thu, 20 Mar 2014 21:47:43 GMT

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

Srimanth Gunturi commented on YARN-1838:
----------------------------------------

With the _fromTs_ param, the API calls would look like this

On a page of 10 jobs, our first call will be
[http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&limit=11]
When user hits next, we would like to call
[http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&fromId=JID11&fromTs=123456&limit=11]
and continue on for further _Next_ clicks
When the page is polling every 6s, it will keep calling the below so that data is consistent.
[http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&fromId=JID11&fromTs=123456&limit=11]

> Timeline service getEntities API should provide ability to get entities from given id
> -------------------------------------------------------------------------------------
>
>                 Key: YARN-1838
>                 URL: https://issues.apache.org/jira/browse/YARN-1838
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Srimanth Gunturi
>            Assignee: Billie Rinaldi
>         Attachments: YARN-1838.1.patch, YARN-1838.2.patch
>
>
> To support pagination, we need ability to get entities from a certain ID by providing
a new param called {{fromid}}.
> For example on a page of 10 jobs, our first call will be like
> [http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&limit=11]
> When user hits next, we would like to call
> [http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&fromid=JID11&limit=11]
> and continue on for further _Next_ clicks
> On hitting back, we will make similar calls for previous items
> [http://server:8188/ws/v1/timeline/HIVE_QUERY_ID?fields=events,primaryfilters,otherinfo&fromid=JID1&limit=11]
> {{fromid}} should be inclusive of the id given.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message