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

    https://github.com/apache/spark/pull/1112#discussion_r14078350
  
    --- Diff: 
yarn/common/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala
 ---
    @@ -116,4 +118,15 @@ private[spark] class YarnClientSchedulerBackend(
         logInfo("Stopped")
       }
     
    +  override def addWebUIFilter(filter: String, proxyBase: String) {
    +    if (filter != null && filter.nonEmpty && proxyBase != null && 
proxyBase.nonEmpty) {
    +      logInfo(s"Add WebUI Filter. $filter")
    +      val amFilter = 
"org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter"
    +      System.setProperty("spark.ui.filters", amFilter)
    +      System.setProperty(s"spark.$amFilter.params", filter)
    +      System.setProperty("spark.ui.proxyBase", proxyBase)
    +      JettyUtils.addFilters(sc.ui.handlers, conf)
    --- End diff --
    
    you should be using getHandlers function.


---
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