Creating mappings for OpenLineage events
Create a mapping to display lineage for a custom or unsupported technology.
Overview
To display lineage for custom or unsupported technologies, complete these tasks:
- Create data source definitions.
- Create custom technology.
- Create a mapping rule.
- Run a metadata import or ingest the events by using APIs.
Prerequisites
Permissions
The following permissions and roles are required.
| Task | Permission or role |
|---|---|
| Create a data source definition | • Platform asset catalog role: Admin or Editor • IBM Cloud IAM role: CloudPak Data Source Creator or CloudPak Data Source Administrator |
| Create a connection to a data source | • Access to connections to data sources • Project role: Admin or Editor |
| Create a custom technology | • Manage data lineage permission |
| Create an OpenLineage mapping | • Manage data lineage permission |
| Import lineage metadata | • Manage data lineage permission • Project role: Admin or Editor |
| View lineage | • Manage data lineage or Access data lineage permission |
Data source definitions
Create a data source definition for each endpoint that is referenced in the OpenLineage event.
For more information, see Creating a data source definition.
Create a custom technology
If the supported technologies do not match the structure of your technology, create a custom technology. Complete these steps:
- Go to Data > Data lineage > Map lineage > Map OpenLineage > Custom technologies, and click Create technology.
- Enter a meaningful name that easily identifies the technology.
- Enter a unique branch name.
- Select the technology type that is most appropriate for your technology.
- Define the number of assets in the data structure hierarchy, and edit asset type names if needed.
- Optionally, define which asset type occurs recursively in the hierarchy.
For more information, see Technology type.
Create a mapping
To create a mapping for an OpenLineage event, complete these steps:
- Go to Data > Data lineage > Map lineage > Map OpenLineage > Active mappings, and click Create mapping.
- Select the type of namespace, Dataset namespace or Job namespace. See Rule scope.
- Select the namespace matching method, Namespace prefix or Namespace exact value. See Namespace matching method and namespace value.
- Provide the prefix or exact value. If you provide prefix, include the delimiter
://or.in the value. Click Next. - Select the technology type, a predefined or a custom one. If needed, create a new custom technology.
- Specify the data source definition assignment method. Select Assign automatically and proceed, or Select manually and select a data source definition from the list. See Data source definitions.
- Review the summary of your mapping and click Create.
Create a metadata import
When your mapping is ready, it is processed when an OpenLineage event is imported. The event must be in the .json format, and the .json file must be compressed in a .zip file.
To import the OpenLineage event, complete these steps:
- In the project, go to the Assets tab, and click New asset > Import metadata for data assets.
- Specify a name and select the Import lineage metadata goal.
- Select the data source definition that matches your event data source.
- In the Add inputs from file section, click Add, and select the .zip file with the .json file inside.
- Optionally, edit the remaining metadata import options and save and run your job.
When the metadata import job is completed, see the lineage in Data > Data lineage.
For more information, see Creating metadata imports.
Ingest events by using APIs
Alternatively to importing metadata, you can ingest events by using APIs. See Ingesting OpenLineage events.