-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-10531] [CORE] AppId is set as AppName in status rest api #8688
Conversation
add to whitelist |
Test build #42281 has finished for PR 8688 at commit
|
@@ -455,7 +455,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli | |||
_ui = | |||
if (conf.getBoolean("spark.ui.enabled", true)) { | |||
Some(SparkUI.createLiveUI(this, _conf, listenerBus, _jobProgressListener, | |||
_env.securityManager, appName, startTime = startTime)) | |||
_env.securityManager, applicationId, appName, startTime = startTime)) |
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.
applicationId
hasn't been initialized yet here, so you shouldn't need to provide it in the constructor. Just call setAppId
later as you're already doing.
Thanks for the review @vanzin |
Test build #42313 has finished for PR 8688 at commit
|
Test build #42314 has finished for PR 8688 at commit
|
Test build #42327 has finished for PR 8688 at commit
|
@zjffdu there's no point in adding more code if a single line change fixes the issue. Then both live UIs and history server UIs are always created the same way. Consistency = good. |
Push another commit to revert the unecessary change. And I think the appName is not set correctly in FsHistoryProvider.scala & Master.scala (Fix it in this commit). @vanzin Please help review. |
Test build #42410 has finished for PR 8688 at commit
|
LGTM. At first the changes to the app name seem weird, since it was nice to have the extra information show up in the browser's title bar when looking at the history server or the master UI, but I see that it would make the information exposed in the API wrong. retest this please |
retest this please |
@@ -146,7 +146,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock) | |||
val ui = { | |||
val conf = this.conf.clone() | |||
val appSecManager = new SecurityManager(conf) | |||
SparkUI.createHistoryUI(conf, replayBus, appSecManager, appId, | |||
SparkUI.createHistoryUI(conf, replayBus, appSecManager, "", |
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.
instead of ""
this should be appInfo.name
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.
(and then the call to ui.setAppName
later is not needed.)
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.
(and then maybe SparkUI.setAppName
may not be needed at all!)
Test build #42434 has finished for PR 8688 at commit
|
@zjffdu could you take a look at whether |
Test build #42583 has finished for PR 8688 at commit
|
Push another commit to remove SparkUI#setAppName, it is not used anywhere. I think the original purpose for setAppName is a workaround for including extra info on the html title. If it is for this purpose, we should expose another api rather than using appName. Another change in the patch is rename appInfo to appAttemptInfo. (There's another appInfo outside, two same appInfo may cause potential bugs) |
Test build #42584 has finished for PR 8688 at commit
|
LGTM. Merging to master. |
Verify it manually.