Data Reading issues from EVENTHub to Databricks using DLT.

Damodara, K 40 Reputation points
2026-08-18T04:39:05.7866667+00:00

Hi Team,

Am building Solution in Databricks to Read Data from Event Hub through DLT. While Running the Code , I am facing a challenge with the cluster configuration.

 

For streaming workloads, we need to use a Single User Access cluster. However, by default, the pipeline is selecting a Shared Serverless cluster. I am unable to find an option to switch it to a Single User Access cluster.

could you please Suggest me here, for Best Solutions.

# Read Event Hub Stream
df = (
    spark.readStream
         .format("eventhubs")
         .options(**ehConf)
         .load()
)
Azure Databricks
Azure Databricks

An Apache Spark-based analytics platform optimized for Azure.


Answer accepted by question author
Vinodh247-1375 44,636 Reputation points Volunteer Moderator
2026-08-19T16:40:30.3166667+00:00

Hi ,

Thanks for reaching out to Microsoft Q&A.

The main point is that Lakeflow Declarative Pipelines (formerly DLT) manage the compute for you, so you generally do not select or change the cluster access mode of the underlying serverless compute. Serverless pipeline compute is Databricks-managed and does not support manually configuring cluster settings such as access mode.

Additionally, if you're using:

spark.readStream
.format("eventhubs")
.options(**ehConf)
.load()

be aware that Lakeflow pipelines do not support the traditional Azure Event Hubs Spark connector, because it requires a third-party JVM library. Databricks recommends connecting to Azure Event Hubs through its Kafka-compatible endpoint and using the built-in Structured Streaming Kafka connector instead.

Therefore, I would recommend:

  1. Verify whether your pipeline is running on Serverless or Classic/Pro compute.
  2. If using Lakeflow Declarative Pipelines, use the Kafka connector with the Event Hubs Kafka endpoint rather than the eventhubs format.
  3. Do not attempt to change the access mode of the automatically created serverless pipeline cluster.
  4. If you have a specific organizational requirement for Single User access, review whether that requirement applies to the pipeline itself or to a separate interactive cluster. Event Hubs ingestion does not inherently require a Single User cluster

please share the exact error message and whether you're using Serverless Lakeflow Pipelines, Classic/Pro Pipelines, or a regular Databricks cluster.

Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author
Senthil kumar 2,410 Reputation points
2026-08-18T05:28:28.63+00:00

Hi @Damodara, K

Please follow the below steps will helpful to fix your issue.

Step1 :

Go to: Workflows → Delta Live Tables → Your Pipeline → Settings

Step 2:

Under Compute, change: Mode: Serverless → Custom

This unlocks the ability to choose your own cluster.

Step3:

Choose a policy like:

single_user_access

no_shared_compute

private_network_only

If you don’t see any → your admin must enable cluster policies.

Step4:

In pipeline settings → Advanced → Configuration:

spark.eventhubs.connectionString = "<your EH connection>"

spark.eventhubs.consumerGroup = "$Default"

spark.eventhubs.maxEventsPerTrigger = 10000

Now your streaming code will work.

Thanks.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Himaja Y 455 Reputation points Microsoft External Staff Moderator
    2026-08-18T13:06:24.7733333+00:00

    Hi Damodara, K,

    Thank you for reaching out to the Microsoft Q&A forum. 

    The issue is with the DLT/Lakeflow pipeline compute configuration, not with the Event Hub code.

    Suggested response:

    1. DLT pipelines may automatically use Serverless compute.
    2. You generally cannot change Serverless to Single User directly from the notebook code.
    3. Open Pipeline → Settings → Compute and check whether Serverless can be disabled.
    4. If the Single User option is not available, check the workspace compute policies and permissions with the Databricks administrator.
    5. Also verify that the Event Hubs connector and Databricks Runtime support the required streaming configuration.

    If Serverless is enforced and there is no option to select Single User/classic compute, the workspace administrator needs to check the pipeline and compute policies.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.