Skip to main content

External Profiler Workflow

Tip: Note that this requires Collate 1.2.1 or higher.
Consider a use case where you have a large database source with multiple databases and schemas which are maintained by different teams within your organization. You have created multiple database services within Collate depending on your use case by applying various filters on this large source. Now, instead of running a profiler pipeline for each service, you want to run a single workflow profiler for the entire source, irrespective of the Collate service which an asset would belong to. This document will guide you on how to achieve this.
Tip: Note that running a single profiler workflow is only supported if you run the workflow externally, not from Collate.

How to Run the Connector Externally

To run the Ingestion via the UI you’ll need to use the OpenMetadata Ingestion Container, which comes shipped with custom Airflow plugins to handle the workflow deployment. If, instead, you want to manage your workflows externally on your preferred orchestrator, you can check the following docs to run the Ingestion Framework anywhere.

External Schedulers

Get more information about running the Ingestion Framework Externally

Requirements

To run the external profiler with external sample data you will need to install the following packages:
Where <connector> is the name of the connector that you want to run against. Each specific installation command will be shared on its documentation page. For example, to run against Athena, install the following:
  • The athena plugin will bring all the requirements to connect to the Athena Service
  • The datalake plugin helps us connect to S3 to manage the sample data.
  • The trino plugin will only be needed temporarily

1. Define the YAML Config

You will need to prepare a yaml file for the data profiler depending on the database source. You can get details of how to define a yaml file for data profiler for each connector here. For example, consider if the data source was snowflake, then the yaml file would have looked like as follows.
Tip: Note that you do NOT pass the Service Name in this yaml file, unlike your typical profiler workflow

2. Run the Workflow

Run the Workflow with the CLI

One option to running the workflow externally is by using the metadata CLI. After saving the YAML config, run the command:

Run the Workflow from Python using the SDK

If you’d rather have a Python script taking care of the execution, use: