Github user witgo commented on a diff in the pull request:
https://github.com/apache/spark/pull/150#discussion_r10737769
--- Diff:
core/src/main/scala/org/apache/spark/deploy/master/ui/MasterWebUI.scala ---
@@ -61,7 +61,7 @@ class MasterWebUI(val master: Master, requestedPort: Int)
extends Logging {
master.applicationMetricsSystem.getServletHandlers
val handlers = metricsHandlers ++ Seq[ServletContextHandler](
- createStaticHandler(MasterWebUI.STATIC_RESOURCE_DIR, "/static/*"),
+ createStaticHandler(MasterWebUI.STATIC_RESOURCE_DIR + "/static",
"/static"),
--- End diff --
For example:
contextHandler.setContextPath(path)
contextHandler.addServlet(holder, "/")
createStaticHandler("org/apache/spark/ui", "/static")
url http://host:port/static/spark-logo-77x50px-hd.png =>
resource path org/apache/spark/ui/spark-logo-77x50px-hd.png
log
14/03/19 13:35:26 DEBUG Server: REQUEST
/static/spark-logo-77x50px-hd.png on
HttpChannelOverHttp@5fbefaf1{r=3,a=DISPATCHED,uri=/static/spark-logo-77x50px-hd.png}
14/03/19 13:35:26 DEBUG ContextHandler: scope
null||/static/spark-logo-77x50px-hd.png @
o.e.j.s.ServletContextHandler@7df5ddbe{/metrics/master/json,null,AVAILABLE}
14/03/19 13:35:26 DEBUG ContextHandler: scope
null||/static/spark-logo-77x50px-hd.png @
o.e.j.s.ServletContextHandler@68ca224f{/metrics/applications/json,null,AVAILABLE}
14/03/19 13:35:26 DEBUG ContextHandler: scope
null||/static/spark-logo-77x50px-hd.png @
o.e.j.s.ServletContextHandler@140dcb1a{/static,null,AVAILABLE}
14/03/19 13:35:26 DEBUG ContextHandler:
context=/static||/spark-logo-77x50px-hd.png @
o.e.j.s.ServletContextHandler@140dcb1a{/static,null,AVAILABLE}
14/03/19 13:35:26 DEBUG ServletHandler: servlet
/static|/spark-logo-77x50px-hd.png|null ->
org.eclipse.jetty.servlet.DefaultServlet-cad7e2b@83497fc5==org.eclipse.jetty.servlet.DefaultServlet,-1,true
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---