Neil Andrassy created SPARK-13142:
-------------------------------------

             Summary: Problem accessing Web UI /logPage/ on Microsoft Windows
                 Key: SPARK-13142
                 URL: https://issues.apache.org/jira/browse/SPARK-13142
             Project: Spark
          Issue Type: Bug
          Components: Web UI
    Affects Versions: 1.6.0, 1.5.1
         Environment: Microsoft Windows
            Reporter: Neil Andrassy


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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to