Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12961

Ozone: Use relative resource urls in KSM/SCM web ui

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7240
    • HDFS-7240
    • None
    • Reviewed

    Description

      The current SCM/KSM web ui (+namenode/datanode) uses absolute urls:

      Css is defined as /static/..., http calls use /jmx as url, etc.

      This is problem with typical cloud native environments where some components could be behind a reverse proxy.

      For example in kubernetes the component could be accessible via the kubctl proxy and specific url:

      http://localhost:8001/api/v1/namespaces/default/services/ozonetest-http-ksm:web/proxy/

      This url points to the scm web ui but all of the resources are loaded from http://localhost:8001 as we use absolute urls.

      I suggest to use relative url everywhere. It could work both with standalone cluster (were the default context is the /) and with proxied environment (where the scm location could be different).

      Attachments

        1. HDFS-12961-HDFS-7240.001.patch
          10 kB
          Marton Elek

        Issue Links

          Activity

            People

              elek Marton Elek
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: