Skip to content
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

Send a subset of Spark properties on application start and end #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aroville-criteo
Copy link

Log basic driver and executor properties.
Sending an event when the application starts and when it ends will allow to catch configs that may have changed during execution, and differ from those sent in the spark-submit.

@aroville-criteo aroville-criteo force-pushed the send_spark_application_state_events branch from 7007242 to e23d1ba Compare September 20, 2024 08:45
@@ -77,6 +78,43 @@ private void sendExecutorStateEvent(long time, State state, String executorId, S
this.eventHandler.accept(time, buildOverrideHeader(executorId), executorStateEvent.build());
}

private void sendApplicationStateEvent(long time, State state) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would give a try using the constants in core/src/main/scala/org/apache/spark/internal/config/package.scala to access the conf values because they can provide the default values as well

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those constants are private, I cannot reference them from the listener

Log basic driver and executor properties.
Sending an event when the application starts and when it ends will
allow to catch configs that may have changed during execution, and
differ from those sent in the spark-submit.
@aroville-criteo aroville-criteo force-pushed the send_spark_application_state_events branch from e23d1ba to ffec359 Compare October 1, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants