Skip to content

Add OpenLineage parent info to EMR Spark steps#70182

Merged
shahar1 merged 2 commits into
apache:mainfrom
mobuchowski:agent/add-openlineage-parent-info-emr-steps
Jul 23, 2026
Merged

Add OpenLineage parent info to EMR Spark steps#70182
shahar1 merged 2 commits into
apache:mainfrom
mobuchowski:agent/add-openlineage-parent-info-emr-steps

Conversation

@mobuchowski

@mobuchowski mobuchowski commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

EmrAddStepsOperator can now pass OpenLineage parent job metadata to classic EMR Spark steps. The new openlineage_inject_parent_job_info option defaults to openlineage.spark_inject_parent_job_info, matching the other Spark-based Amazon operators.

The injection reuses OpenLineage's Spark property helper and translates its output into tokenized --conf key=value arguments for command-runner.jar steps using spark-submit or run-example. It leaves non-Spark steps, custom Jar steps, and steps with existing parent settings unchanged, and does not mutate the operator's original step configuration.

This lets OpenLineage events emitted by Spark link back to the originating Airflow task run when parent information injection is enabled.

Prior art

This follows the same opt-in injection pattern already used by:

Documentation

The general feature is described in the OpenLineage Spark automatic injection documentation.

This PR also updates:


Was generative AI tooling used to co-author this PR?
  • Yes — Codex (GPT-5.6)

Generated-by: Codex (GPT-5.6) following the guidelines

@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Jul 21, 2026
@mobuchowski
mobuchowski force-pushed the agent/add-openlineage-parent-info-emr-steps branch from b89bb2e to 7216ce9 Compare July 21, 2026 13:32
@mobuchowski
mobuchowski marked this pull request as ready for review July 22, 2026 08:34
@mobuchowski
mobuchowski requested a review from o-nikolas as a code owner July 22, 2026 08:34
@shahar1
shahar1 merged commit 8a065ef into apache:main Jul 23, 2026
291 of 292 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants