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

uiWebUrl show inproper URL when running on YARN

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: Web UI, YARN
    • Labels:
      None

      Description

      uiWebUrl returns local url.
      Using it will cause HTTP ERROR 500

      Problem accessing /. Reason:
      
          Server Error
      Caused by:
      javax.servlet.ServletException: Could not determine the proxy server for redirection
      	at org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter.findRedirectUrl(AmIpFilter.java:205)
      	at org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter.doFilter(AmIpFilter.java:145)
      	at org.spark_project.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
      	at org.spark_project.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      	at org.spark_project.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
      	at org.spark_project.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      	at org.spark_project.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
      	at org.spark_project.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.spark_project.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:461)
      	at org.spark_project.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      	at org.spark_project.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      	at org.spark_project.jetty.server.Server.handle(Server.java:524)
      	at org.spark_project.jetty.server.HttpChannel.handle(HttpChannel.java:319)
      	at org.spark_project.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
      	at org.spark_project.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      	at org.spark_project.jetty.io.FillInterest.fillable(FillInterest.java:95)
      	at org.spark_project.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      	at org.spark_project.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
      	at org.spark_project.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
      	at org.spark_project.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
      	at org.spark_project.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
      	at org.spark_project.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
      	at java.lang.Thread.run(Thread.java:745)
      

      We should give address to yarn proxy instead.

        Attachments

          Activity

            People

            • Assignee:
              jerryshao Saisai Shao
              Reporter:
              maver1ck Maciej BryƄski
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: