This Kafka connector is designed to effortlessly ingest records from Azure Service Bus into your Kafka cluster. It leverages Microsoft Azure API to seamlessly transfer data from Service Buses, allowing for their safe transition and safekeeping both payloads and metadata (see Payload support). It provides its user with AT-LEAST-ONCE guarantee as the data is committed (marked as read) in Service Bus once Connector verifies it was successfully committed to designated Kafka topic. Azure Service Bus Source Connector supports both types of Service Buses: Queues and Topics.
The following KCQL is supported:
INSERT INTO <your-kafka-topic> SELECT * FROM <your-service-bus> PROPERTIES(...);
The selection of fields from the Service Bus message is not supported.
io.lenses.streamreactor.connect.azure.servicebus.source.AzureServiceBusSourceConnector
The following example presents all the mandatory configuration properties for the Service Bus connector. Please note there are also optional parameters listed (link to option reference??). Feel free to tweak the configuration to your requirements.
connector.class=io.lenses.streamreactor.connect.azure.servicebus.source.AzureServiceBusSourceConnector name=AzureServiceBusSourceConnector tasks.max=1 connect.servicebus.connection.string=password="Endpoint=sb://MYNAMESPACE.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SOME_SHARED_ACCESS_STRING"; connect.servicebus.kcql=INSERT INTO output-topic SELECT * FROM servicebus-queue PROPERTIES('servicebus.type'='QUEUE');
Azure Service Bus Connector follows specific pattern (Schema) of messages. Please look below for the format of the data transferred to Kafka Topics specified in the KCQL config.
You can connect to an Azure Service Bus by passing your connection string in configuration. The connection string can be found in the Shared access policies section of your Azure Portal.
Example:
connect.servicebus.connection.string=Endpoint=sb://YOURNAMESPACE.servicebus.windows.net/;SharedAccessKeyName=YOUR_KEYNAME;SharedAccessKey=YOUR_ACCESS_KEY=
Learn more about different methods of connecting to Service Bus on the Azure Website.
Please find below all the necessary KCQL properties:
QUEUE
TOPIC
Please find below all the relevant configuration parameters:
On this page