Govern and trace lineage
This lesson opens OpenMetadata, which the Full preset deploys, and follows the domains, data products and lineage that OpenLakeForge fills in from your project.
You will find your marketing domain and campaign_performance product
in OpenMetadata and trace a Gold table back to Bronze, in about 15 minutes.
Start from the project of lesson 6: the Full preset is deployed and every product’s job has run once (the end-to-end run of lesson 5 did it).
1. Open OpenMetadata
Section titled “1. Open OpenMetadata”http://openmetadata.olf.localhostSign in as admin@open-metadata.org. The deployment generated the password
into Secret openmetadata-admin; read it with:
kubectl -n olf-system get secret openmetadata-admin -o jsonpath='{.data.admin-password}' | base64 -d2. Find the domain and data product
Section titled “2. Find the domain and data product”You wrote no OpenMetadata configuration. The artifacts phase of olf infra deploy
reads lakehouse_code/governance.yml and creates:
| governance.yml | OpenMetadata |
|---|---|
A domain such as marketing |
A domain, shown as Marketing |
A product such as campaign_performance |
A data product named campaign_performance, shown as Campaign Performance, inside that domain |
In the left menu, open Domains and select Marketing. Its data product
Campaign Performance is listed, with the description from governance.yml.
To change either, edit that file and run olf infra deploy --provider local --phase artifacts.
3. Find the tables
Section titled “3. Find the tables”OpenMetadata crawls the Iceberg catalog through Trino, so every Silver and
Gold table is listed under the database of your stage, lakehouse_dev.
Search for mart_campaign_performance. Its full name is
polaris.lakehouse_dev.campaign_performance_gold.mart_campaign_performance.
4. Trace the lineage
Section titled “4. Trace the lineage”Open the table and select its Lineage tab. Floe and dbt each emit
OpenLineage events to OpenMetadata every time the job runs, so the graph shows
the Silver table marketing_silver.campaigns feeding the Gold mart. Nothing
in your project turns this on.
Check it worked
Section titled “Check it worked”olf infra e2e run --env local --suite fullWith the Full preset the suite also checks OpenMetadata: it requires every
domain and data product from governance.yml, and the Gold lineage of the
stage. It ends with:
Local OpenLakeForge full e2e validation passed.What you learned
Section titled “What you learned”- Governance metadata is derived from
governance.yml: one OpenMetadata domain per domain, one data product per product. - Lineage comes from the runs themselves, through Floe and dbt, not from configuration.
- Change names and descriptions in the descriptor and redeploy the artifacts.
Sign in with GitHub: control who may open these services.
Synced from openlakeforge @ v0.7.5-beta.1 (8a7bf72), docs/tutorial/07-govern-and-trace-lineage.md.