- Newest
- Most votes
- Most comments
To enable column-level lineage in Amazon DataZone when using AWS Glue 5.0, you need to ensure that your configuration is properly set up to capture and transmit the detailed lineage information.
Based on your code and configuration, you've correctly enabled the "Generate Lineage Events" option in your Glue job and connected it to your DataZone domain. However, to capture column-level lineage specifically, you need to make sure you're using the OpenLineage integration correctly.
Here are some recommendations to ensure column-level lineage is captured:
- Make sure you've provided the correct DataZone domain ID in your job configuration. This should be in the format:
--conf spark.extraListeners=io.openlineage.spark.agent.OpenLineageSparkListener --conf spark.openlineage.transport.type=amazon_datazone_api --conf spark.openlineage.transport.domainId=<Your-Domain-ID>
-
Ensure your transformation context names are meaningful and consistent. In your code, you're using "a_bronze", "stringtoint", and "a_silver" as transformation contexts, which is good practice.
-
The ApplyMapping transform you're using should help with column-level lineage, as it explicitly maps source columns to target columns. However, make sure the mappings are correctly defined.
-
Verify that the AWS Glue job role has the necessary permissions to send lineage events to Amazon DataZone.
-
After running the job, it may take some time for the lineage information to be processed and displayed in DataZone. Try refreshing or waiting a bit after the job completes.
-
If you're using AWS Glue Data Catalog tables (which you are), make sure they are properly added to the Amazon DataZone catalog through data source runs.
If you've verified all these points and still don't see column-level lineage, you might want to check if there are any errors in the job logs related to lineage event generation or transmission to DataZone.
Sources
Introducing AWS Glue 5.0 for Apache Spark | AWS Big Data Blog
Data lineage in Amazon DataZone - Amazon DataZone
Migrating AWS Glue for Spark jobs to AWS Glue version 5.0 - AWS Glue
Announcing the general availability of data lineage in the next generation of Amazon SageMaker and Amazon DataZone | AWS News Blog
answered a year ago
Relevant content
asked 2 years ago
asked a year ago
asked a year ago
- AWS OFFICIALUpdated 2 years ago
