Area: Ingestion
Sub-Area: dbt
Issue
dbt model ingestion fails or dbt models are not properly linked to their materialized tables in the data warehouse. This prevents proper lineage tracking and metadata association between dbt models and physical database objects.
Common Error Messages:
401 Unauthorized error
Solution
Note: For DataHub Cloud customers, infrastructure-level changes (Kubernetes, AWS resources, operating system configurations) are managed by DataHub Support. The solutions below focus on configuration changes that customers can implement.
Ensure dbt manifest and catalog files are accessible:
- Verify
manifest.jsonandcatalog.jsonpaths are correct in the ingestion recipe - Confirm the files were generated by a recent dbt run
- Check file permissions allow the ingestion executor to read them
- Verify
Configure dbt source with proper linking:
source:
type: dbt
config:
manifest_path: "target/manifest.json"
catalog_path: "target/catalog.json"
target_platform: "snowflake" # or bigquery, postgres, etc.
target_platform_instance: "prod"
load_schemas: true
node_type_pattern:
allow: ["model", "source", "test"]
Link dbt models to warehouse tables:
- Use GraphQL API to create lineage between dbt models and materialized tables
- Ensure the
target_platformmatches your actual data warehouse platform - Verify URNs match between dbt models and physical tables
Troubleshoot model linking issues:
- Check that database/schema names in dbt match the warehouse naming
- Verify
target_platform_instancematches the instance name used in warehouse ingestion - Use the
envconfiguration to match environments across ingestion sources
Additional Notes
Always backup your DataHub configuration before making changes. Test solutions in a non-production environment when possible.
Related Documentation
Related Tickets
- 5720, 5921, 5790, 5716, 5715, 5674, 5631, 5566, 5047, 5242, 5584
Tags:
ingestion, dbt, transformation, troubleshooting