Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1530 [Umbrella] Store, manage and serve per-framework application-timeline data
  3. YARN-1838

Timeline service getEntities API should provide ability to get entities from given id

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. YARN-1838.1.patch
          38 kB
          Billie Rinaldi
        2. YARN-1838.2.patch
          48 kB
          Billie Rinaldi
        3. YARN-1838.3.patch
          65 kB
          Billie Rinaldi
        4. YARN-1838.4.patch
          65 kB
          Billie Rinaldi
        5. YARN-1838.5.patch
          66 kB
          Zhijie Shen

        Activity

          People

            billie Billie Rinaldi
            srimanth.gunturi Srimanth Gunturi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: