Skip to content

Conversation

@EnricoMi
Copy link
Contributor

What changes were proposed in this pull request?

Mentions in the docs how to populate custom executor log url vars with environment variable's values.

Why are the changes needed?

This feature exists since 3.0.0 but is not documented elsewhere.

Does this PR introduce any user-facing change?

Improves documentation.

How was this patch tested?

Not tested.

Was this patch authored or co-authored using generative AI tooling?

No.

spark.ui.custom.executor.log.url='https://log-server/log?appId={{APP_ID}}&execId={{EXECUTOR_ID}}'
```

You can add custom variables to this url template, populated with the values of existing executor environment variables like
Copy link
Member

Choose a reason for hiding this comment

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

add custom -> add additional custom

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in e0eba77.

You can add custom variables to this url template, populated with the values of existing executor environment variables like

```
spark.executorEnv.SPARK_EXECUTOR_ATTRIBUTE_YOUR_VAR='$(EXECUTOR_ENV_VAR)'
Copy link
Member

Choose a reason for hiding this comment

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

EXECUTOR_ENV_VAR part looks confusing. According to the above description, EXISTING_EXECUTOR_ENV_VAR could be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, done in e0eba77.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Thank you, @EnricoMi .
Merged to master~

@EnricoMi
Copy link
Contributor Author

Thanks @dongjoon-hyun!

@EnricoMi EnricoMi deleted the docs-kubernetes-executor-log branch August 20, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants