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

Problem accessing Web UI /logPage/ on Microsoft Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1, 1.6.0
    • Fix Version/s: 1.6.1, 2.0.0
    • Component/s: Web UI
    • Labels:
      None
    • Environment:

      Microsoft Windows

      Description

      A calculated path can be built with a mixture of \ and /. The problem is with the "\" character. This is there because, when using Windows, the "path.separator" System Property used by the java.io.File class is set to "\". This is what is used to create the initial part of the path. The "/" in the rest of the path are hard-coded in the Spark code.

      Problem accessing /logPage/. Reason:
      Server Error
      Caused by:

      java.net.URISyntaxException: Illegal character in path at index 1: .\work/app-20160129163017-0039/0/
      at java.net.URI$Parser.fail(Unknown Source)
      at java.net.URI$Parser.checkChars(Unknown Source)
      at java.net.URI$Parser.parseHierarchical(Unknown Source)
      at java.net.URI$Parser.parse(Unknown Source)
      at java.net.URI.<init>(Unknown Source)
      at org.apache.spark.deploy.worker.ui.LogPage.getLog(LogPage.scala:141)
      at org.apache.spark.deploy.worker.ui.LogPage.render(LogPage.scala:78)
      at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:79)
      at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:79)
      at org.apache.spark.ui.JettyUtils$$anon$1.doGet(JettyUtils.scala:69)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      at org.spark-project.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
      at org.spark-project.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
      at org.spark-project.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      at org.spark-project.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      at org.spark-project.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      at org.spark-project.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      at org.spark-project.jetty.server.handler.GzipHandler.handle(GzipHandler.java:264)
      at org.spark-project.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
      at org.spark-project.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      at org.spark-project.jetty.server.Server.handle(Server.java:370)
      at org.spark-project.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
      at org.spark-project.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
      at org.spark-project.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
      at org.spark-project.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      at org.spark-project.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      at org.spark-project.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      at org.spark-project.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
      at org.spark-project.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      at org.spark-project.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      at org.spark-project.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              markpavey Mark Pavey
              Reporter:
              andrassy Neil Andrassy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: