Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14850

Read HttpServer2 resources directly from the source tree (if exists)

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha4
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Currently the Hadoop server components can't be started from IDE during the development. There are two reasons for that:

      1. some artifacts are in provided scope which are definitelly needed to run the server (see HDFS-12197)

      2. The src/main/webapp dir should be on the classpath (but not).

      In this issue I suggest to fix the second issue by reading the web resources (html and css files) directly from the source tree and not from the classpath but ONLY if the src/main/webapp dir exists. Similar approach exists in different projects (eg. in Spark).

      WIth this patch the web development of the web interfaces are significant easier as the result could be checked immediatelly with a running severt (without rebuild/restart). I used this patch during the development of the Ozone web interfaces.

      As the original behaviour of the resource location has not been change if "src/main/webapp" doesn't exist, I think it's quite safe. And the method is called only once during the creation of the HttpServer2 there is also no change in performance.

        Attachments

        1. HADOOP-14850.003.patch
          2 kB
          Elek, Marton
        2. HADOOP-14850.002.patch
          2 kB
          Elek, Marton
        3. HADOOP-14850.001.patch
          3 kB
          Elek, Marton

          Activity

            People

            • Assignee:
              elek Elek, Marton
              Reporter:
              elek Elek, Marton
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: