Add EventLogURI to commandContext and update Spark event log directory handling#99
Merged
sanketjadhavSF merged 1 commit intomainfrom Mar 19, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Spark event log directory configuration in the sparkeks command so Spark History Server can read consolidated event logs, by introducing an explicit EventLogURI in commandContext.
Changes:
- Added
EventLogURItocommandContextfor explicitly configuring the Spark event log base URI. - Updated
applySparkOperatorConfigto setspark.eventLog.dirfromcommandContext.EventLogURIinstead ofexecCtx.logURI.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Yash Shrivastava (alephys26)
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Currently we put all spark job logs inside separate directories for respective
{job_id}due to this Spark History Server does not able to read event logs and it requires all the logs consolidated into single directory in order to render all the spark applications.This pull request updates how the Spark event log directory is configured for Spark History Server in the
sparkekscommand implementation. The main change is to use the newEventLogURIfield in thecommandContextstruct instead of the previouslogURIfield.Configuration improvements:
EventLogURIfield to thecommandContextstruct to explicitly specify the event log URI for Spark jobs.applySparkOperatorConfigto usecommandContext.EventLogURIfor setting the Spark event log directory, replacing the previous use oflogURI.