-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-4913] Fix incorrect event log path #3755
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
Conversation
ok to test |
Test build #24687 has finished for PR 3755 at commit
|
/cc @vanzin @andrewor14 (#1222) |
Looks like the test failed not because of this PR. Please test it again. |
Hmm, guess I missed this in my testing. Anyway, I think this is the wrong place for the fix. The right fix in my view should be in |
Here's what I think is a better approach, feel free to use / adapt it: |
retest this please @vanzin I believe we separated the definition of |
I see. Hmm. That sucks. :-/ A comment there would help at least, but even better would be to avoid this tight coupling altogether. |
Hey @viirya thanks for fixing this. I believe this PR works, but right fix here is to change the |
Andrew's suggestion sounds good. Long term, I think it would be better to send this log path later (as some sort of "application stopping" message maybe?), instead of trying to send it up front like this. |
I think using |
Ah yes I forgot that exists. I have updated the branch. |
Thanks @andrewor14 @vanzin. I made corresponding revision. |
Test build #24732 has finished for PR 3755 at commit
|
LGTM. Thanks! |
This looks good to me, too, so I'm going to merge this into |
Looks great. Thanks for adding the warning about |
Thanks for your suggestion too. |
SPARK-2261 uses a single file to log events for an app.
eventLogDir
inApplicationDescription
is replaced witheventLogFile
. However,ApplicationDescription
inSparkDeploySchedulerBackend
is initialized withSparkContext
'seventLogDir
. It is just the log directory, not the actual log file path.Master.rebuildSparkUI
can not correctly rebuild a new SparkUI for the app.Because the
ApplicationDescription
is remotely registered withMaster
and the app's id is then generated inMaster
, we can not get the app id in advance before registration. So the received description needs to be modified with correcteventLogFile
value.