Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/33#discussion_r10144156
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/JettyUtils.scala ---
    @@ -100,17 +152,12 @@ private[spark] object JettyUtils extends Logging {
        * If the desired port number is contented, continues incrementing ports 
until a free port is
        * found. Returns the chosen port and the jetty Server object.
        */
    -  def startJettyServer(hostName: String, port: Int, handlers: Seq[(String, 
Handler)]): (Server, Int)
    -  = {
    -
    -    val handlersToRegister = handlers.map { case(path, handler) =>
    -      val contextHandler = new ContextHandler(path)
    -      contextHandler.setHandler(handler)
    -      contextHandler.asInstanceOf[org.eclipse.jetty.server.Handler]
    -    }
    +  def startJettyServer(hostName: String, port: Int, handlers: 
Seq[ServletContextHandler]): 
    --- End diff --
    
    I would take a SparkConf here and pass it down to get the filters from that.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to