Skip to content

Conversation

@sanchalitorpe-source
Copy link

This PR adds the SPARK_APPLICATION_NAME environment variable to driver and executor pods when using SparkKubernetesOperator. The variable uses the base application name combined with the DAG run ID to ensure uniqueness but deterministic naming per DAG run.

Use case:

  • Helps users track Spark applications in logs and monitoring tools
  • Provides a consistent way to expose application name inside pods

closes #43801

@@ -0,0 +1,107 @@
# airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py
Copy link
Contributor

Choose a reason for hiding this comment

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

All files should have license headers. This operator is already defined in providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py. The PR also has unrelated changes from your other PRs. Can you please check your git flow, disclose usage of AI and also test changes before submitting PRs?

https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add SPARK_APPLICATION_NAME env variable to driver and executor pods when using SparkKubernetesOperator

2 participants