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

    https://github.com/apache/spark/pull/1112#discussion_r14077908
  
    --- Diff: 
yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/ExecutorLauncher.scala 
---
    @@ -142,9 +149,19 @@ class ExecutorLauncher(args: 
ApplicationMasterArguments, conf: Configuration, sp
       }
     
       private def registerApplicationMaster(): 
RegisterApplicationMasterResponse = {
    -    logInfo("Registering the ApplicationMaster")
    -    // TODO: Find out client's Spark UI address and fill in here?
    -    amClient.registerApplicationMaster(Utils.localHostName(), 0, "")
    +    val appUIAddress = 
sparkConf.getOption("spark.driver.appUIAddress").getOrElse("")
    +    logInfo(s"Registering the ApplicationMaster with appUIAddress: 
$appUIAddress")
    +    amClient.registerApplicationMaster(Utils.localHostName(), 0, 
appUIAddress)
    +  }
    +
    +  // add the yarn amIpFilter that Yarn requires for properly securing the 
UI
    +  private def addAmIpFilter() {
    +    val proxy = WebAppUtils.getProxyHostAndPort(conf)
    +    val parts : Array[String] = proxy.split(":")
    +    val proxyBase 
=System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV)
    --- End diff --
    
    add space after =


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