Skip to content

Commit

Permalink
[SPARK-3286] - Cannot view ApplicationMaster UI when Yarn’s url schem…
Browse files Browse the repository at this point in the history
…e is https
  • Loading branch information
Benoy Antony committed Sep 4, 2014
1 parent f2b5b61 commit f060c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private class YarnRMClientImpl(args: ApplicationMasterArguments) extends YarnRMC
// Users can then monitor stderr/stdout on that node if required.
appMasterRequest.setHost(Utils.localHostName())
appMasterRequest.setRpcPort(0)
appMasterRequest.setTrackingUrl(uiAddress)
appMasterRequest.setTrackingUrl(uiAddress.replaceAll("^http(\\w)*://", ""))
resourceManager.registerApplicationMaster(appMasterRequest)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments,
if (sc == null) {
finish(FinalApplicationStatus.FAILED, "Timed out waiting for SparkContext.")
} else {
registerAM(sc.ui.appUIHostPort)
registerAM(sc.ui.appUIAddress)
try {
userThread.join()
} finally {
Expand Down

0 comments on commit f060c02

Please sign in to comment.