Github user witgo commented on a diff in the pull request:
https://github.com/apache/spark/pull/1112#discussion_r14775753
--- Diff:
yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/ExecutorLauncher.scala
---
@@ -142,9 +149,20 @@ 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.get("spark.driver.appUIAddress", "")
+ 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() {
--- End diff --
There are differences in the code.Should not be combined.
---
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.
---