-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-3286] - Cannot view ApplicationMaster UI when Yarn’s url scheme i... #2276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
f060c02
450c536
92127c9
e82f94e
c3d51ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -189,7 +189,11 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments, | |
| if (sc == null) { | ||
| finish(FinalApplicationStatus.FAILED, "Timed out waiting for SparkContext.") | ||
| } else { | ||
| registerAM(sc.ui.appUIHostPort, securityMgr) | ||
| var uiAddress = sc.ui.appUIHostPort | ||
| if (yarnConf.get("yarn.http.policy").equals("HTTPS_ONLY")) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I like this as much. The reason I prefer stripping it off in alpha is the yarn alpha support will be deprecated at some point (hopefully fairly soon) and I would rather have it be optimized for the yarn stable case which is what most people are using.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per @vanzin , alpha means pre-branch-2 hadoop. Before YARN-1203(Hadoop 2.2), we cannot pass AM URLS with scheme. There are stable releases before YARN-1203. So for stable releases without YARN-1203, we have to pass host:port. There are 4 cases: stable and yarn.http.policy !=HTTPS_ONLY : uiAddress = host:port So I think, we need to do the conditional logic for both stable and alpha.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually the yarn versioning thing is: Alpha is branch 0.23 and 2.x up til 2.1.x . see http://spark.apache.org/docs/latest/building-with-maven.html#specifying-the-hadoop-version since YARN-1203 went into 2.2 its fine to only special case in alpha but do the easy thing for stable.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll defer to @tgravescs on Hadoop branch trivia; I see the point of having different logic for stable and alpha, although I'm ok with the current approach too.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @tgravescs . I have changed the code appropriately |
||
| uiAddress = sc.ui.appUIAddress | ||
| } | ||
| registerAM(uiAddress, securityMgr) | ||
| try { | ||
| userThread.join() | ||
| } finally { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather this done with something more reliable like URI class and just removing the scheme if it has one.
Also can you add a comment about we are removing it because hadoop doesn't handle the scheme.