Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2828

Enable auto refresh of web pages (using http parameter)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • Hide
      The patch implements an optional "refresh" parameter for resource manager pages. It contains the following:
      - Modified RmView.java to check if there is an HTTP "refresh" parameter, and if so sanitize it (to protect against XSS attacks) and generate a meta http autorefresh tag on the page with the requested refresh interval.
      - Test case that verifies the presence of the meta http refresh tag in the rendered HTML.
      - Added Jsoup (http://jsoup.org/) to the pom.xml file, since we need that for URL sanitization.
      Show
      The patch implements an optional "refresh" parameter for resource manager pages. It contains the following: - Modified RmView.java to check if there is an HTTP "refresh" parameter, and if so sanitize it (to protect against XSS attacks) and generate a meta http autorefresh tag on the page with the requested refresh interval. - Test case that verifies the presence of the meta http refresh tag in the rendered HTML. - Added Jsoup ( http://jsoup.org/ ) to the pom.xml file, since we need that for URL sanitization.

    Description

      The MR1 Job Tracker had a useful HTTP parameter of e.g. "&refresh=3" that could be appended to URLs which enabled a page reload. This was very useful when developing mapreduce jobs, especially to watch counters changing. This is lost in the the Yarn interface.

      Could be implemented as a page element (e.g. drop down or so), but I'd recommend that the page not be more cluttered, and simply bring back the optional "refresh" HTTP param. It worked really nicely.

      Attachments

        1. YARN-2828.006.patch
          6 kB
          Vijay Bhat
        2. YARN-2828.005.patch
          5 kB
          Vijay Bhat
        3. YARN-2828.004.patch
          5 kB
          Vijay Bhat
        4. YARN-2828.003.patch
          5 kB
          Vijay Bhat
        5. YARN-2828.002.patch
          5 kB
          Vijay Bhat
        6. YARN-2828.001.patch
          6 kB
          Vijay Bhat

        Activity

          People

            vijaysbhat Vijay Bhat
            timrobertson100 Tim Robertson
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: