Azure Blob Storage Sink Connector for Confluent Cloud¶
If you are installing the connector locally for Confluent Platform, see Azure Blob Storage Sink Connector for Confluent Platform.
You can use the Azure Blob Storage connector to export data from Apache Kafka® topics to Azure Blob Storage objects in either Avro, JSON, or Bytes formats. Depending on your environment, the Azure Blob Storage connector can export data by guaranteeing exactly-once delivery semantics to consumers of the Azure Blob Storage objects it produces.
The Azure Blob Storage sink connector periodically polls data from Kafka and then uploads the data to Azure Blob Storage. A partitioner is used to split the data of every Kafka partition into chunks. Each chunk of data is represented as an Azure Blob Storage object. The key name encodes the topic, the Kafka partition, and the start offset of this data chunk.
If no partitioner is specified in the configuration, the default partitioner which preserves Kafka partitioning is used. The size of each data chunk is determined by the number of records written to Azure Blob Storage and by schema compatibility.
The Confluent Cloud Azure Blob Storage sink connector provides the following features:
- Exactly Once Delivery: Records that are exported using a deterministic partitioner are delivered with exactly-once semantics regardless of the eventual consistency of Azure Blob Storage.
- Data Format with or without Schema: Out of the box, the connector supports writing data to Azure Blob Storage in JSON and Bytes. Schema validation is disabled for JSON.
- Schema Evolution:
schema.compatibilityis set to
- Partitioner: The connector supports the
TimeBasedPartitionerclass based on the Kafka class
- Flush size:
flush.sizedefaults to 1000. For example, if you use the default setting of 1000 and your topic has six partitions, files start to be created in the storage bucket after more than 1000 records exist in each partition. Note that the default value of 1000 can be increased if needed.
Refer to Cloud connector limitations for additional information.
Preview connectors are not currently supported and are not recommended for production use. For specific connector limitations, see Cloud connector limitations.
Use this quick start to get up and running with the Confluent Cloud Azure Blob Storage sink connector. The quick start provides the basics of selecting the connector and configuring it to stream events to Azure storage.
- Authorized access to a Confluent Cloud cluster on Microsoft Azure.
- The Confluent Cloud CLI installed and configured for the cluster. See Install and Configure the Confluent Cloud CLI.
- An Azure block blob storage account.
- An Azure storage account access key.
- Either one of the following to use for the Kafka cluster credentials fields:
- A Confluent Cloud API key and secret. After you have created your cluster, go to Cluster settings > API access > Create Key.
- A Confluent Cloud service account.
Step 1: Launch your Confluent Cloud cluster.¶
See the Confluent Cloud Quick Start for installation instructions.
Step 2: Add a connector.¶
Click Connectors > Add connector.
Step 3: Select your connector.¶
Click the Azure Blob Storage Sink connector icon.
Step 4: Set up the connection.¶
Complete the following and click Continue.
Make sure you have all your prerequisites completed.
- Select one or more topics.
- Enter a Connector Name.
- Enter your Kafka Cluster credentials. The credentials are either the API key and secret or the service account API key and secret.
- Select the message format.
- Add the storage account name, account key, and container name.
- Select the Time interval that sets how you want your messages grouped in the Azure container. For example, if you select Hourly, messages are grouped into folders for each hour data is streamed to the bucket.
- Enter the Flush size. This value defaults to 1000. For example, if you use the default setting of 1000 and your topic has six partitions, files start to be created in the storage bucket after more than 1000 records exist in each partition. Note that the default value of 1000 can be increased if needed.
- Enter the number of tasks in use by the connector. See Azure Blob Storage Sink Connector for additional task information.
Step 5: Launch the connector.¶
Verify the connection details and click Launch.
Step 6: Check the connector status.¶
The status for the connector should go from Provisioning to Running.
Step 7: Check the Azure storage container.¶
From the Azure portal, go to the container in your Azure storage account.
Open each folder until you see your messages displayed.
For additional information about this connector see Azure Blob Storage Sink Connector for Confluent Platform. Note that not all Confluent Platform connector features are provided in the Confluent Cloud connector.