Github user ajbozarth commented on a diff in the pull request:
https://github.com/apache/spark/pull/19049#discussion_r135313226
--- Diff: core/src/main/resources/org/apache/spark/ui/static/historypage.js
---
@@ -136,6 +136,16 @@ $(document).ready(function() {
(attempt.hasOwnProperty("attemptId") ? attempt["attemptId"] +
"/" : "") + "logs";
attempt["durationMillisec"] = attempt["duration"];
attempt["duration"] = formatDuration(attempt["duration"]);
+ var idStr = id.toString();
+ if(idStr.indexOf("application_") > -1) {
+ attempt["master"] = "yarn";
+ } else if(idStr.indexOf("app-") > -1) {
+ attempt["master"] = "standalone";
+ } else if(idStr.indexOf("local-") > -1) {
+ attempt["master"] = "local";
+ } else {
+ attempt["master"] = "mesos";
--- End diff --
Separate from my other comment this isn't a good way to determine the
resource manager. Users can set the application name on application start to
whatever they want. These are just the defaults for when the parameter isn't
set and they've actually changed themselves from one version of Spark to the
next previously.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]