Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33579

Executors blank page behind proxy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2, 3.1.0
    • Component/s: Spark Core
    • Labels:
    • Environment:

      Spark 3.0.1 on Kubernetes

      Description

      When accessing the Web UI behind a proxy (e.g. a Kubernetes ingress), executors page is blank.

      In /core/src/main/resources/org/apache/spark/ui/static/utils.js, we  should avoid the use of location.origin when constructing URLs for internal API calls within the JavaScript.
      Instead, we should use apiRoot global variable.

      On one hand, it would allow to build relative URLs. On the other hand, apiRoot reflects the Spark property spark.ui.proxyBase which can be set to change the root path of the Web UI.

      If spark.ui.proxyBase is actually set, original URLs become incorrect, and we end up with an executors blank page.
      I encounter this bug when accessing the Web UI behind a proxy (in my case a Kubernetes Ingress).

       

      See also https://github.com/jupyterhub/jupyter-server-proxy/issues/57#issuecomment-699163115

        Attachments

          Activity

            People

            • Assignee:
              pgillet Pascal GILLET
              Reporter:
              pgillet Pascal GILLET
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: