---
title: Connect to Apache Kafka for managed ingestion
description: Learn how to create a Unity Catalog connection to Apache Kafka for use with the managed Kafka connector in Databricks Lakeflow Connect.
canonical_url: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/kafka-source-setup
---

# Connect to Apache Kafka for managed ingestion

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/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/aws/en/admin/workspace-settings/manage-previews.md).

This page shows how to create a Unity Catalog connection to your Apache Kafka cluster. The managed Kafka connector uses this connection to authenticate to your cluster without requiring credentials in your pipeline configuration.

## Authentication methods

The Kafka connector supports two authentication methods. Choose the method that matches your Kafka cluster configuration:

* **Username and password**: Authenticate using a Kafka username and password (SASL/PLAIN or SASL/SCRAM).
* **Service Credential**: Authenticate using a Unity Catalog service credential. Select an existing service credential or create a new one, then provide the bootstrap servers of the Kafka cluster.

For details on setting up authentication on the Kafka side, see [Authentication](https://docs.databricks.com/aws/en/connect/streaming/kafka/authentication.md).

## <a id="next-steps" />Next steps

Use Catalog Explorer to create a Kafka connection so that any user with `USE CONNECTION` or `ALL PRIVILEGES` can create pipelines. See [Create a Kafka connection](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/kafka-connection.md).
