> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# KafkaConnect | OpenMetadata Messaging Pipeline Connector

> Configure Kafka Connect for metadata ingestion from real-time event streams, schema updates, and topic usage.

export const ConnectorDetailsHeader = ({name, icon, stage, availableFeatures, unavailableFeatures = [], availableFeaturesCollate = []}) => {
  const showSubHeading = availableFeatures?.length > 0 || unavailableFeatures?.length > 0 || availableFeaturesCollate?.length > 0;
  const totalAvailableFeatures = [...availableFeatures || [], ...availableFeaturesCollate || []];
  return <div className="container">
      <div className="Heading">
        <div className="flex items-center gap-3">
          {icon && <div className="IconContainer">
              <img src={icon} alt={name} noZoom className="ConnectorIcon" />
            </div>}
          <h1 className="ConnectorName">{name}</h1>
          <span className={`StageBadge ${stage === 'PROD' ? 'prod' : 'beta'}`}>
            {stage}
          </span>
        </div>
      </div>
      {showSubHeading && <div className="SubHeading">
          <div className="FeaturesHeading">Feature List</div>
          <div className="FeaturesList">
            {totalAvailableFeatures.map(feature => <div className="FeatureTag AvailableFeature" key={feature}>
                ✓ {feature}
              </div>)}
            {unavailableFeatures.map(feature => <div className="FeatureTag UnavailableFeature" key={feature}>
                ✕ {feature}
              </div>)}
          </div>
        </div>}
    </div>;
};

<ConnectorDetailsHeader icon="/public/images/connectors/kafka.webp" name="KafkaConnect" stage="PROD" availableFeatures={["Pipelines", "Pipeline Status", "Lineage", "Usage"]} unavailableFeatures={["Owners", "Tags"]} />

In this section, we provide guides and references to use the KafkaConnect connector.
Configure and schedule KafkaConnect metadata workflows from the OpenMetadata UI:

* [Requirements](#requirements)
* [Metadata Ingestion](#metadata-ingestion)
* [Troubleshooting](/v2.1.x-SNAPSHOT/connectors/pipeline/kafkaconnect/troubleshooting)

## Requirements

Before configuring the KafkaConnect connector, make sure the following requirements are in place.

### KafkaConnect Versions

OpenMetadata is integrated with Kafka Connect up to version [3.6.1](https://kafka.apache.org/36/kafka-connect/) and will continue to work with future Kafka Connect versions.
The ingestion framework uses the [kafkaconnect python client](https://libraries.io/pypi/kafka-connect-py) to connect to the Kafka Connect instance and perform the API calls.

## Metadata Ingestion

To ingest metadata from KafkaConnect, you need to create a service connection. The service connects KafkaConnect with OpenMetadata. Once you create a service, OpenMetadata automatically starts ingesting metadata.

### Step 1: Add New Service

1. Navigate to **Settings** > **Services**.

   <img src="https://mintcdn.com/openmetadata/pD1dbe0lKPSqnODv/public/images/connector2.0/metadata-ingestion/access-services.png?fit=max&auto=format&n=pD1dbe0lKPSqnODv&q=85&s=c95e6e79c73eea68039c10115c7f80d6" alt="Navigate to Settings and Services" width="3004" height="1578" data-path="public/images/connector2.0/metadata-ingestion/access-services.png" />

2. Click **Add New Service**.

   <img src="https://mintcdn.com/openmetadata/pD1dbe0lKPSqnODv/public/images/connector2.0/metadata-ingestion/add-new-service.png?fit=max&auto=format&n=pD1dbe0lKPSqnODv&q=85&s=13457ef6e565aa39d339db30ce1f354d" alt="Add New Service" width="3002" height="1514" data-path="public/images/connector2.0/metadata-ingestion/add-new-service.png" />

### Step 2: Select a Service and Connector

From the service type dropdown, select **Pipeline Services**, then click the **KafkaConnect** connector tile.

<img src="https://mintcdn.com/openmetadata/lclr4-hP2CvWdln8/public/images/connector2.0/metadata-ingestion/Pipeline/select-service/kafkaconnect.png?fit=max&auto=format&n=lclr4-hP2CvWdln8&q=85&s=b02da237a577f2f7c4bd05e5805526bc" alt="Select Service" width="2102" height="1536" data-path="public/images/connector2.0/metadata-ingestion/Pipeline/select-service/kafkaconnect.png" />

### Step 3: Add Service Name and Description

* Enter a unique, descriptive **Service Name**. OpenMetadata identifies services by their service name. Enter a name that distinguishes this deployment from other KafkaConnect services you are ingesting metadata from.
* Optional: Enter a **Description** for the service.

<img src="https://mintcdn.com/openmetadata/lclr4-hP2CvWdln8/public/images/connector2.0/metadata-ingestion/Pipeline/service-name/kafkaconnect.png?fit=max&auto=format&n=lclr4-hP2CvWdln8&q=85&s=c17dbb154d489de89c4a2eabbacac8cf" alt="Add New Service Name" width="1482" height="850" data-path="public/images/connector2.0/metadata-ingestion/Pipeline/service-name/kafkaconnect.png" />

<Note>
  **Note**: The service name cannot be changed after it is set.
</Note>

### Step 4: Configure Connection Options

Specify your source credentials and verify the connection.

#### Enter Connection Details

Enter the connection details for KafkaConnect. A help panel displays inline guidance for each field.

<img src="https://mintcdn.com/openmetadata/lclr4-hP2CvWdln8/public/images/connector2.0/metadata-ingestion/Pipeline/connection-details/kafkaconnect.png?fit=max&auto=format&n=lclr4-hP2CvWdln8&q=85&s=eab0b3fc8f8d3214f7256ac5a0fc652d" alt="Configure Service Connection" width="1442" height="656" data-path="public/images/connector2.0/metadata-ingestion/Pipeline/connection-details/kafkaconnect.png" />

* **Host and Port**: The hostname or IP address of the Kafka Connect worker with the REST API enabled, for example, `https://localhost:8083` or `https://127.0.0.1:8083` or `https://<yourkafkaconnectresthostnamehere>`.
* **Kafka Connect Config**: OpenMetadata supports username/password.
  1. Basic Authentication
     * Username: Username to connect to Kafka Connect. This user should be able to send requests to the Kafka Connect API and access the [Rest API](https://docs.confluent.io/platform/current/connect/references/restapi.html) GET endpoints.
     * Password: Password to connect to Kafka Connect.
* **verifySSL**: Whether SSL verification should be performed when authenticating.
* **Kafka Service Name**: The Service Name of the ingested [Kafka](/v2.1.x-SNAPSHOT/connectors/messaging/kafka#metadata-ingestion) instance associated with this KafkaConnect instance.

#### Test Connection

Once the credentials have been added, click on **Test Connection** and **Save** the changes.

<img src="https://mintcdn.com/openmetadata/9G75p72jJKYgvFUQ/public/images/connectors/test-connection.png?fit=max&auto=format&n=9G75p72jJKYgvFUQ&q=85&s=4ac71a56e30fa3dd1be86f82c1f07068" alt="Test Connection" width="1494" height="310" data-path="public/images/connectors/test-connection.png" />

### Step 5: Configure Ingestion Options

In the **What to Ingest** step, use filter patterns to control which assets OpenMetadata ingests from your KafkaConnect service. Filter patterns use regular expressions applied to pipeline names.

#### How Filter Patterns Work

* **Include**: Add one or more comma-separated regular expressions. OpenMetadata ingests only assets whose names match at least one expression. Leave blank to include all assets.
* **Exclude**: Add one or more comma-separated regular expressions. OpenMetadata skips any asset whose name matches an expression. Leave blank to exclude nothing.

Rules match asset names using one of five expressions:

* **contains**: matches any name containing the value. For example, `sales` matches `my_sales_data` and `sales_2024`.
* **starts with**: matches names beginning with the value. For example, `prod_` matches `prod_db` and `prod_schema`.
* **ends with**: matches names ending with the value. For example, `_raw` matches `events_raw` and `logs_raw`.
* **is exactly**: matches the exact name only. For example, `analytics` matches only `analytics`.
* **matches regex**: matches names using a regular expression. For example, `^prod_.*_v\d+$` matches `prod_events_v1`.

When both Include and Exclude are set, Exclude takes priority.

<Tip>
  Leave the filter pattern empty to ingest all pipelines available in the source.
</Tip>

#### Filter Options

The Pipeline section includes the following filter options:

* **Pipeline**: Controls which pipelines (connectors) OpenMetadata ingests from Kafka Connect.

Each section provides the following controls:

* **Scan Mode**: Choose between the following scan modes:
  * **Scan all**: Ingests every asset of that type the connector can access. This is the default.
  * **Only specific**: Enables include rules so only assets matching at least one rule are ingested.
* **Always exclude**: Add permanent exclusion rules (shown in red). Assets matching these rules are never ingested, regardless of include rules.
* **Preview**: Shows a real-time summary of what will be in scope based on your current rules.
* **Include rules** *(available only in **Only specific** mode)*: Click **+ Add** to define a rule. Added rules appear as chips; an asset is included if it matches any rule.

### Step 6: Create & Deploy

Click **Create & Deploy** to deploy the agent and start the first metadata ingestion run. OpenMetadata saves the service configuration and immediately begins pulling metadata from the source.

To monitor ingestion progress or view the service you just added, go to **Settings** > **Services** and select your service.

## Configure Metadata Agent and Schedule Ingestion

The **Metadata Agent** extracts pipelines, tasks, and other structural metadata from your source and keeps your OpenMetadata catalog in sync. It powers discovery, lineage, and governance across your data assets.

When you click **Create & Deploy**, OpenMetadata automatically deploys a Metadata Agent for this service and triggers the first ingestion run. View its status and run history from the **Agents** tab on the service detail page.

To configure the additional Metadata Agent and schedule ingestion, follow these steps:

1. Navigate to **Settings** > **Services** and select the service type.

   <img src="https://mintcdn.com/openmetadata/pD1dbe0lKPSqnODv/public/images/connector2.0/metadata-ingestion/access-service-type.png?fit=max&auto=format&n=pD1dbe0lKPSqnODv&q=85&s=4471655da6e39d91776597e4a7eea513" alt="Navigate to Settings and Services" width="2992" height="1612" data-path="public/images/connector2.0/metadata-ingestion/access-service-type.png" />

2. Click the service you have added.

3. Select the **Agents** tab and click **Add Agent** > **Metadata**.

   <img src="https://mintcdn.com/openmetadata/pD1dbe0lKPSqnODv/public/images/connector2.0/metadata-ingestion/add-metadata-agent.png?fit=max&auto=format&n=pD1dbe0lKPSqnODv&q=85&s=a654d9700126ce64cb6c9a99b8d69b1a" alt="Add Metadata Agent" width="2398" height="1144" data-path="public/images/connector2.0/metadata-ingestion/add-metadata-agent.png" />

   For some services, the dropdown is not available and clicking **Add Agent** takes you directly to the agent configuration page.

4. On the **Configure Ingestion** page, do the following and click **Next**.

   * **Name this Ingestion**: Enter a unique recognizable name for this ingestion pipeline.

     <img src="https://mintcdn.com/openmetadata/pD1dbe0lKPSqnODv/public/images/connector2.0/metadata-ingestion/metadata-agent-name.png?fit=max&auto=format&n=pD1dbe0lKPSqnODv&q=85&s=92954c166518e3ac07589ab20865e3e7" alt="Name this Ingestion" width="1578" height="644" data-path="public/images/connector2.0/metadata-ingestion/metadata-agent-name.png" />

   * **Agent Setup**: Configure the core parameters for this agent. The following fields are available:

     | Field | Default | Description |
     | - | - | - |
     | Ownership Update Mode | replace | Set how owners from source metadata update Pipeline owners. In replace mode, resolved owners from the current source replace existing owners. In append mode, resolved owners are appended to active existing Pipeline owners. |
     | Db Service Names | — | List of database service names used for lineage resolution. |
     | Storage Service Names | — | List of storage service names used for lineage resolution. |
     | Messaging Service Names | — | List of messaging service names used for lineage resolution. |
     | Status Lookback Days | 1 | Number of days of pipeline run status history to ingest. Only runs within the last N days will be fetched. |
     | Include Lineage | On | Turn off to stop fetching lineage from pipelines. |
     | Mark Deleted Pipeline | On | Soft-delete pipelines in OpenMetadata when they are removed from the source. Associated entities like lineage are also deleted. |
     | Include UnDeployed Pipelines | On | Toggle whether un-deployed pipelines should be ingested. If set to false, only deployed pipelines will be ingested. |

     <img src="https://mintcdn.com/openmetadata/lclr4-hP2CvWdln8/public/images/connector2.0/metadata-ingestion/Pipeline/pipeline-agent-setup.png?fit=max&auto=format&n=lclr4-hP2CvWdln8&q=85&s=081af023a6a36ef466c7974c33a6dfcd" alt="Agent Setup" width="1564" height="1476" data-path="public/images/connector2.0/metadata-ingestion/Pipeline/pipeline-agent-setup.png" />

   * **Filter Patterns**: Apply include or exclude rules to scope which pipelines this agent ingests. These follow the same filter options described in **Step 5: Configure Ingestion Options**.

     <img src="https://mintcdn.com/openmetadata/lclr4-hP2CvWdln8/public/images/connector2.0/metadata-ingestion/Pipeline/pipeline-filter-pattern.png?fit=max&auto=format&n=lclr4-hP2CvWdln8&q=85&s=a299d4dd545f6eeb1189dea71005b3cf" alt="Filter Patterns" width="1550" height="374" data-path="public/images/connector2.0/metadata-ingestion/Pipeline/pipeline-filter-pattern.png" />

   * **Scope & Behaviour**: Control what metadata to include and how to handle deletions. Toggle each option on or off based on your needs:

     | Toggle | Default | Description |
     | - | - | - |
     | Enable Debug Log | Off | Sets the ingestion log level to DEBUG. Useful for troubleshooting. |
     | Override Metadata | Off | When on, source values overwrite existing descriptions, tags, owners, and display names in OpenMetadata. A description or display name that the source doesn't send never replaces an existing value. When off, OpenMetadata only updates fields that have no existing value. |
     | Override Lineage | Off | When on, existing lineage is replaced with newly extracted lineage on each run. |

     <img src="https://mintcdn.com/openmetadata/lclr4-hP2CvWdln8/public/images/connector2.0/metadata-ingestion/Pipeline/pipeline-scope-behaviour.png?fit=max&auto=format&n=lclr4-hP2CvWdln8&q=85&s=2adc8c4f660d750cfe679bc2f8a608a6" alt="Scope & Behaviour" width="1570" height="1022" data-path="public/images/connector2.0/metadata-ingestion/Pipeline/pipeline-scope-behaviour.png" />

5. On the **Schedule Interval** page, set when the agent runs:

   * **Schedule**: Choose a preset interval (Hourly, Daily, Weekly, Monthly) or enter a custom cron expression.
   * **On-Demand**: No automatic schedule; trigger the agent manually when needed.

   <img src="https://mintcdn.com/openmetadata/j50Bw6ZBiFbbFFnF/public/images/connectors/schedule.png?fit=max&auto=format&n=j50Bw6ZBiFbbFFnF&q=85&s=24b0c2f55f803efde5fb3b3bc24ed3ae" alt="Schedule Interval" width="2733" height="1083" data-path="public/images/connectors/schedule.png" />

6. Click **Add** to deploy the agent.

## Debezium CDC Support

The KafkaConnect connector provides **full support for Debezium CDC connectors** with intelligent column extraction and accurate lineage tracking.

### What We Provide

When you ingest Debezium connectors, OpenMetadata automatically:

1. **Detects CDC Envelope Structures**: Identifies Debezium's CDC format with `op`, `before`, and `after` fields.
2. **Extracts Real Table Columns**: Parses actual database columns from the CDC payload instead of CDC envelope metadata.
3. **Creates Accurate Column-Level Lineage**: Maps lineage from source database tables to Kafka topics to target systems.

### Recognized Configuration Parameters

OpenMetadata recognizes the following Debezium configuration parameters for intelligent CDC detection:

* `database.server.name`: Server identifier (Debezium V1).
* `topic.prefix`: Topic prefix (Debezium V2).
* `table.include.list`: Tables to capture (for example, `mydb.customers,mydb.orders`).

<img src="https://mintcdn.com/openmetadata/op1zUgmsxrC0rdlj/public/images/connectors/kafkaconnect/lineage.png?fit=max&auto=format&n=op1zUgmsxrC0rdlj&q=85&s=aaeae2932d4b1cfcbeac26ed180a32ff" alt="Kafkaconnect Lineage" width="2570" height="722" data-path="public/images/connectors/kafkaconnect/lineage.png" />

## Snowflake Sink Lineage

For each Kafka topic a Snowflake sink connector consumes, OpenMetadata builds lineage to the Snowflake table that receives it. It reads the target from the connector's own configuration and resolves it with the same naming rules the Snowflake Kafka connector applies. Lineage is supported for these connector classes:

* `SnowflakeSink`, the managed connector on Confluent Cloud.
* `com.snowflake.kafka.connector.SnowflakeSinkConnector`, the self-managed connector.
* `com.snowflake.kafka.connector.SnowflakeStreamingSinkConnector`, the self-managed connector from version 4.0.

### How the Target Table Is Named

A topic listed in `snowflake.topic2table.map` lands in the table the map names. The map supports regular expression keys, including group substitution when `snowflake.topic2table.map.regex.replacement` is `true`. For any other topic, the table name comes from the topic name:

* **`SnowflakeSink` and `SnowflakeSinkConnector`**: A topic that's a valid Snowflake identifier becomes a table of the same name in uppercase. In any other topic name, invalid characters become underscores and OpenMetadata appends a hash suffix, so `web.clicks-v2` lands in `WEB_CLICKS_V2_1470743940`.
* **`SnowflakeStreamingSinkConnector`**: The table keeps the topic name exactly, including its case. With `snowflake.compatibility.enable.autogenerated.table.name.sanitization` set to `true`, the naming rules of `SnowflakeSink` and `SnowflakeSinkConnector` apply instead.

Snowflake uppercases any name that isn't double-quoted. That applies to table names in `snowflake.topic2table.map`, and to `snowflake.database.name` and `snowflake.schema.name`, which the connector passes to Snowflake unquoted. A name in double quotes keeps its case.

### How the Snowflake Service Is Matched

One Snowflake account is often ingested as several OpenMetadata services, so the connector configuration alone doesn't say which service holds a table. OpenMetadata matches services by account:

* It checks every Snowflake service whose **Account** matches the account in the connector's `snowflake.url.name`. The comparison ignores case, the `.snowflakecomputing.com` and `.privatelink` suffixes, and the difference between underscores and hyphens.
* If **Db Service Names** in the Kafka Connect Metadata Agent lists some of those services, it checks only the listed ones.
* If no service's **Account** matches, it checks the Snowflake services listed in **Db Service Names**.

OpenMetadata writes lineage only when exactly one of the checked services holds the table under its exact database, schema, and table name. If none or several of them do, it writes no lineage for that topic and logs a warning naming the table. It never links a topic to a same-named table in a service it didn't check. For more information, see [Snowflake Sink Lineage Is Missing](/v2.1.x-SNAPSHOT/connectors/pipeline/kafkaconnect/troubleshooting#snowflake-sink-lineage-is-missing).

An account has two identifier forms: an organization and account name such as `myorg-myaccount`, and an account locator such as `xy12345.us-east-1`. Both identify the same account, but OpenMetadata can't match one form against the other. Give each Snowflake service's **Account** the form the connector's `snowflake.url.name` uses. If no service's **Account** matches, list the service that holds the tables in **Db Service Names** instead. That works only while no service matches. Once one does, only the matching services are checked.

### How Columns Are Mapped

Each top-level topic field maps to the column of the same name, ignoring case. A nested record lands in a single `VARIANT` column. When the connector applies a `Flatten` transform, each nested field maps to its flattened column instead.

## Supported Connectors

Currently, the following source and sink connectors for Kafka Connect are supported for lineage tracking:

* [MySQL](/v2.1.x-SNAPSHOT/connectors/database/mysql)
* [PostgreSQL](/v2.1.x-SNAPSHOT/connectors/database/postgres)
* [MSSQL](/v2.1.x-SNAPSHOT/connectors/database/mssql)
* [MongoDB](/v2.1.x-SNAPSHOT/connectors/database/mongodb)
* [Snowflake](/v2.1.x-SNAPSHOT/connectors/database/snowflake)
* [Amazon S3](/v2.1.x-SNAPSHOT/connectors/storage/s3)

For these connectors, lineage information can be obtained provided they are configured with a source or sink and the corresponding metadata ingestion is enabled.

**Note**: All supported database connectors listed above work seamlessly with **Debezium CDC connectors** for enhanced column-level lineage tracking. When using Debezium, OpenMetadata automatically detects the CDC envelope structure and extracts actual table columns for accurate lineage mapping.

### Missing Lineage

If lineage information is not displayed for a Kafka Connect service, follow these steps to diagnose the issue.

1. **Kafka Service Association**: Make sure the Kafka service that the data is being ingested from is associated with this Kafka Connect service. Additionally, verify that the correct name is passed on in the Kafka Service Name field during configuration. This field helps establish the lineage between the Kafka service and the Kafka Connect flow.
2. **Source and Sink Configuration**: Verify that the Kafka Connect connector associated with the service is configured with a source and/or sink database or storage system. Connectors without a defined source or sink cannot provide lineage data.
3. **Metadata Ingestion**: Ensure that metadata for both the source and sink database/storage systems is ingested and passed to the lineage system. This typically involves configuring the relevant connectors to capture and transmit this information.
4. **Snowflake Service Match**: For a Snowflake sink, make sure the target table is ingested in a Snowflake service whose **Account** matches the connector's `snowflake.url.name`. If no service's **Account** matches, list the service in **Db Service Names** instead. For more information, see [Snowflake Sink Lineage](#snowflake-sink-lineage).

## Related

<Columns cols={2}>
  <Card title="Usage Workflow" href="/v2.1.x-SNAPSHOT/connectors/ingestion/workflows/usage">
    Learn more about how to configure the Usage Workflow to ingest Query information from the UI.
  </Card>

  <Card title="Lineage Workflow" href="/v2.1.x-SNAPSHOT/connectors/ingestion/workflows/lineage">
    Learn more about how to configure the Lineage from the UI.
  </Card>

  <Card title="Profiler Workflow" href="/v2.1.x-SNAPSHOT/how-to-guides/data-quality-observability/profiler/profiler-workflow">
    Learn more about how to configure the Data Profiler from the UI.
  </Card>

  <Card title="Data Quality Workflow" href="/v2.1.x-SNAPSHOT/how-to-guides/data-quality-observability/quality/configure">
    Learn more about how to configure the Data Quality tests from the UI.
  </Card>

  <Card title="dbt Integration" href="/v2.1.x-SNAPSHOT/connectors/database/dbt">
    Learn more about how to ingest dbt models' definitions and their lineage.
  </Card>
</Columns>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.