Thanks for reaching out to Microsoft Q&A.
Yes, it is possible to enable auto-create topics when using Kafka with Azure Event Hubs. Here’s how you can do it:
Create an Azure Event Hubs Namespace:
- When you create an Event Hubs namespace, the Kafka endpoint for the namespace is automatically enabled. You can stream events from your applications that use the Kafka protocol into Event Hubs.
Enable Auto-Create Topics:
- Azure Event Hubs honors the Kafka producer’s
auto.create.topics.enable
configuration. When this parameter is set totrue
(which is the default), topics will be auto-created by the producer.
Configuration Steps:
If you are using an existing Kafka cluster, you can enable automatic topic creation through the Ambari Web UI:
- From the Azure portal, select your Kafka cluster.
- From Cluster dashboards, select Ambari home.
- Select the Kafka service from the list on the left of the page.
- Select Configs in the middle of the page.
- In the Filter field, enter
auto.create
. - Change the value of
auto.create.topics.enable
totrue
, and then select Save.
Hope this helps. Do let us know if you any further queries.