cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Streaming with Kafka with the same groupid

User16826994223
Honored Contributor III

A kafka topic is having 300 partitions and I see two clusters are running and have the same group id,

will the data be duplicate in my delta bonze layer

1 REPLY 1

sajith_appukutt
Honored Contributor II

By default, each streaming query generates a unique group ID for reading data ( ensuring it's own  its own consumer group ) . In scenarios where you'd want to specify it (authz etc ) , it is not recommended to have two streaming applications specify the same groupid. Spark keeps track of Kafka offsets internally and doesnโ€™t commit any offset.

In any case, for sources that doesn't support exactly once behaviour, with delta you could achieve idempotency via MERGE

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group