Skip to main content

Community connectors in Lakeflow Connect

Beta

This feature is in Beta.

Community connectors are open-source connectors that extend Lakeflow Connect to sources without managed connector support. The community builds and maintains them. This page shows how to use a community connector to ingest data from a supported source into Databricks.

To build your own connector for a source that isn't supported yet, see Build a custom connector for Lakeflow Connect. You can run a custom connector in your own workspace without contributing it to the community.

How community connectors work​

Community connectors are built on the LakeflowConnect interface, which wraps the Spark Python Data Source API. Each connector handles authentication, schema discovery, and incremental data reads so you can create, configure, and run an ingestion pipeline backed by Lakeflow pipelines.

Each community connector is distributed as Python wheel (.whl) libraries. When you create a pipeline, Databricks installs the connector's libraries in the pipeline, and the pipeline uses them to ingest data from the source. To choose where the libraries come from, see Choose the connector libraries.

Supported sources​

The community regularly adds new connectors. For the latest list of supported sources, see the Community and custom connectors section of the Add data page in your Databricks workspace, or the Lakeflow Community Connectors repository on GitHub.

Requirements​

  • A Databricks workspace with Unity Catalog enabled
  • A connection for the source you want to ingest, or permissions to create a connection
  • Write access to a catalog and schema for the ingested tables

Create an ingestion pipeline​

To ingest data using a community connector:

  1. In the sidebar of your Databricks workspace, click +New > Add or upload data, then select the source under Community and custom connectors.

    The Community and custom connectors section of the Add data page, showing the Add Custom Connector tile and community connector tiles.

  2. On the Connection step, click Create connection or select an existing connection, then click Next.

  3. On the Ingestion setup step, configure the pipeline:

    1. For Pipeline name, enter a name for the pipeline.
    2. For Event log location, select a catalog and a schema. Databricks stores the pipeline event log here.
    3. For Compute type, choose the compute that runs the pipeline.
    4. For Connector libraries, choose how to get the connector's wheel files. Default import is selected by default. See Choose the connector libraries.
    5. Click Create pipeline and continue.
  4. On the Source step, select the tables to ingest. You can also choose the slowly changing dimension (SCD) type for each table.

  5. On the Destination step, choose the catalog and schema where ingested tables are written.

  6. On the Schedules and notifications step, optionally set a schedule and notifications, then click Save and run pipeline. If you didn't change any settings on this step, the button is Run pipeline.

Choose the connector libraries​

The Connector libraries option on the Ingestion setup step controls where the pipeline gets the connector's framework and connector wheel files.

Option

Description

Default import

Databricks imports the newest wheels for the connector from the Lakeflow Community Connectors repository. Use this option unless you need a specific connector version.

Manual import

In Library dependencies, you enter the path to each .whl file the connector needs. The files can be in a workspace folder or a Unity Catalog volume, or you can browse your volumes. Use this option to keep the pipeline on a specific connector version, or if your workspace can't reach GitHub.

Option

Description

Default import

Databricks imports the newest wheels for the connector from the Lakeflow Community Connectors repository. Use this option unless you need a specific connector version.

Manual import

In Library dependencies, you enter the path to each .whl file the connector needs. The files can be in a workspace folder or a Unity Catalog volume, or you can browse your volumes. Use this option to keep the pipeline on a specific connector version, or if your workspace can't reach GitHub.

The Connector libraries option on the Ingestion setup step with Default import selected.

The Connector libraries option with Manual import selected, showing the Library dependencies field for entering .whl file paths.

How default import works​

When you create the pipeline with Default import, Databricks copies the newest connector wheels into your home folder and configures the pipeline to use them. Each pipeline stays on the connector version it was created with. When a newer version is released, only pipelines that you create after the release get it.

If the import fails, Databricks doesn't create the pipeline. The wizard shows the error and switches to Manual import so that you can enter the wheel paths and try again.

Considerations​

  • Community connectors are under active development. Interfaces and behavior are subject to change.
  • Databricks doesn't maintain community connectors. They're not backed by Databricks SLAs and don't guarantee forward compatibility.
  • With Default import, the wheels are stored in the home folder of the user who creates the pipeline. If the pipeline runs as a different user or service principal, or the creator's home folder is removed, the pipeline can't read the wheels and fails at runtime. In that case, use Manual import with wheels in a location that the pipeline's run-as identity can read, such as a Unity Catalog volume.
  • When you edit an existing community connector pipeline, the Connector libraries choice isn't shown. The wizard shows the pipeline's current wheel paths, which you can change.

Submit feedback​

Report bugs and submit feature requests in the Lakeflow Community Connectors repository.