Turning lineage capture on or off
Lineage capture is on by default for supported AWS services. Write events are sent for every job that writes data. You can turn off capture for a job, cluster, or application, or stop specific roles from sending lineage.
Turn off lineage for a job, cluster, or application
Set the Spark property spark.openlineage.disabled to true. The
job runs normally and doesn't send lineage.
Amazon EMR on EC2 (cluster configuration):
[ { "Classification": "spark-defaults", "Properties": { "spark.openlineage.disabled": "true" } } ]
Amazon EMR Serverless (job run):
aws emr-serverless start-job-run \ --application-id 00example \ --execution-role-arn arn:aws:iam::111122223333:role/MyJobRole \ --job-driver '{"sparkSubmit":{"entryPoint":"s3://amzn-s3-demo-bucket/job.py","sparkSubmitParameters":"--conf spark.openlineage.disabled=true"}}'
Amazon EMR on EKS (job run): add --conf
spark.openlineage.disabled=true to sparkSubmitParameters.
AWS Glue (job parameter):
| Key | Value |
|---|---|
--conf |
spark.openlineage.disabled=true |
When you turn off lineage this way, the listener stays registered but drops events.
Stop specific roles or accounts from sending lineage
Deny glue:PostLineageEvent in an IAM policy or a service control policy (SCP).
Jobs that run with those roles keep running and don't send lineage. For an example, see Stop a role from sending lineage.
Turn off the lineage system table
Turning off the system table stops new events from being written to
aws-catalog.lineage.events. It doesn't stop lineage capture or change the
lineage graph. For steps, see Turning on the lineage system table.
Considerations
-
If you override
spark.extraListenersor the other lineage properties that the service sets, the job stops sending lineage. -
Users with host access on Amazon EMR on EC2 and Amazon EMR on EKS can change Spark defaults. To enforce opt-out centrally, deny
glue:PostLineageEvent.