---
title: Kafka connector
description: Overview of the managed Kafka connector in Databricks Lakeflow Connect.
canonical_url: https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/kafka
---

# Kafka connector

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/gcp/en/release-notes/release-types.md). To use it, a workspace admin must turn on **Lakeflow Connect for Kafka** from the **Previews** page. See [Manage Databricks previews](https://docs.databricks.com/gcp/en/admin/workspace-settings/manage-previews.md).

The managed Kafka connector in Lakeflow Connect allows you to ingest data from Apache Kafka topics into streaming tables in Databricks.

You can also route records from a single Kafka source to multiple destination tables based on a per-record routing key (fanout, in Private Preview). See [Route records to multiple tables (fanout)](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/kafka-pipeline.md#fanout).

To stream from Apache Kafka with full control using Structured Streaming, see [Connect to Apache Kafka](https://docs.databricks.com/gcp/en/connect/streaming/kafka/index.md).

## Kafka connector components

| Component          | Description                                                                                                                                                                                                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Connection         | A Unity Catalog securable object that stores the bootstrap server address and authentication credentials for your Kafka cluster. The managed Kafka connector uses this connection to authenticate without requiring credentials in your pipeline configuration. |
| Ingestion pipeline | A pipeline that continuously reads from one or more Kafka topics and writes the results to streaming tables. The pipeline runs on serverless compute.                                                                                                           |
| Destination tables | The [streaming tables](https://docs.databricks.com/gcp/en/ldp/concepts/streaming-tables.md) where the ingestion pipeline writes the data.                                                                                                                       |

## Start ingesting from Apache Kafka

The following table provides an overview of the end-to-end Kafka ingestion flow, based on user type:

| User      | Steps                                                                                                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Admin     | Use Catalog Explorer to create a connection so that any user with `USE CONNECTION` or `ALL PRIVILEGES` can create pipelines. See [Create a Kafka connection](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/kafka-connection.md). |
| Non-admin | Use any supported interface to create a pipeline from an existing connection. See [Ingest data from Apache Kafka](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/kafka-pipeline.md).                                              |

## Feature availability

| Feature                                       | Availability                                                                                              |
| --------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| UI-based pipeline authoring                   | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported (Beta)  |
| API-based pipeline authoring                  | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Declarative Automation Bundles                | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Continuous streaming ingestion                | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Unity Catalog governance                      | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Orchestration using Lakeflow Jobs             | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| SCD type 2                                    | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| Column selection and deselection              | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported (Beta)  |
| Row filtering                                 | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| Automated schema evolution: New columns       | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Automated schema evolution: Data type changes | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| Automated schema evolution: Column renames    | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |

## Authentication methods

| Authentication method | Availability                                                                                              |
| --------------------- | --------------------------------------------------------------------------------------------------------- |
| Username and password | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Service Credential    | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| OAuth U2M             | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| OAuth M2M             | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
