You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Javad Saljooghi <ja...@paul.tech> on 2025/09/12 09:28:13 UTC

Is there a Confluent Cloud Kafka connector for Protobuf with Schema Registry support when using the Flink SQL API?

Hi,

I deployed Flink on Kubernetes (running on AWS EC2) using the Flink K8s operator v1.2.0 and a custom Dockerfile based on the image flink:2.0.0-java21.
My messages are in Kafka (Confluent Cloud), serialized with Protobuf and registered in the Confluent Schema Registry.
I was able to connect to the Kafka cluster and consume deserialized messages successfully using the SQL client. However, I couldn’t find a connector that works with the Confluent Schema Registry to deserialize Protobuf messages when using the Flink SQL API.
Question: Is there a Flink SQL connector that supports deserializing Protobuf messages from Confluent Kafka with Schema Registry integration? If not, what’s the recommended approach to achieve this?
This proto format: https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/table/formats/protobuf/ does not work with confluent Wire Format i.e.:

 *   Magic byte (1 byte, always 0) → identifies Confluent’s wire format.
 *   Schema ID (4 bytes, big-endian) → the ID of the schema stored in Confluent Schema Registry.
 *   Optional data for Protobuf/JSON (like field indexes).
 *   The actual serialized Protobuf message.

From confluent I found this on maven repo: https://mvnrepository.com/artifact/io.confluent.flink/flink-sql-connector-kafka
but I am not sure if it works with self-managed flink and if so, how should I write the query for this connector? Anyone has idea how to deserilize confluent kafka proto messages with flink SQL API?

 BRs,

Javad Saljooghi



Javad Saljooghi
Cloud Backend Engineer




Re: Is there a Confluent Cloud Kafka connector for Protobuf with Schema Registry support when using the Flink SQL API?

Posted by George Leonard <ge...@gmail.com>.
Had a look. All that I’m finding is a avro based blog, sorry.

Sent from my iPhone

George Leonard
__________________________
Georgelza@gmail.com
+27 82 655 2466

> On 12 Sep 2025, at 11:43, George Leonard <ge...@gmail.com> wrote:
> 
> Will check
> Pretty sure I did a blog that does exactly this.
> 
> Sent from my iPhone
> 
> George Leonard
> __________________________
> Georgelza@gmail.com
> +27 82 655 2466
> 
>>> On 12 Sep 2025, at 11:29, Javad Saljooghi <ja...@paul.tech> wrote:
>>> 
>> 
>> Hi,
>> 
>> I deployed Flink on Kubernetes (running on AWS EC2) using the Flink K8s operator v1.2.0 and a custom Dockerfile based on the image flink:2.0.0-java21.
>> My messages are in Kafka (Confluent Cloud), serialized with Protobuf and registered in the Confluent Schema Registry.
>> I was able to connect to the Kafka cluster and consume deserialized messages successfully using the SQL client. However, I couldn’t find a connector that works with the Confluent Schema Registry to deserialize Protobuf messages when using the Flink SQL API.
>> Question: Is there a Flink SQL connector that supports deserializing Protobuf messages from Confluent Kafka with Schema Registry integration? If not, what’s the recommended approach to achieve this?
>> This proto format: https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/table/formats/protobuf/ does not work with confluent Wire Format i.e.:
>> Magic byte (1 byte, always 0) → identifies Confluent’s wire format.
>> Schema ID (4 bytes, big-endian) → the ID of the schema stored in Confluent Schema Registry.
>> Optional data for Protobuf/JSON (like field indexes).
>> The actual serialized Protobuf message.
>> From confluent I found this on maven repo: https://mvnrepository.com/artifact/io.confluent.flink/flink-sql-connector-kafka
>> but I am not sure if it works with self-managed flink and if so, how should I write the query for this connector? Anyone has idea how to deserilize confluent kafka proto messages with flink SQL API?
>> 
>>  BRs,
>> Javad Saljooghi
>> 
>> 
>> 
>> Javad Saljooghi
>> Cloud Backend Engineer
>> 
>> 
>> 
>> 
>> 

Re: Is there a Confluent Cloud Kafka connector for Protobuf with Schema Registry support when using the Flink SQL API?

Posted by George Leonard <ge...@gmail.com>.
Will check
Pretty sure I did a blog that does exactly this.

Sent from my iPhone

George Leonard
__________________________
Georgelza@gmail.com
+27 82 655 2466

> On 12 Sep 2025, at 11:29, Javad Saljooghi <ja...@paul.tech> wrote:
> 
> 
> Hi,
> 
> I deployed Flink on Kubernetes (running on AWS EC2) using the Flink K8s operator v1.2.0 and a custom Dockerfile based on the image flink:2.0.0-java21.
> My messages are in Kafka (Confluent Cloud), serialized with Protobuf and registered in the Confluent Schema Registry.
> I was able to connect to the Kafka cluster and consume deserialized messages successfully using the SQL client. However, I couldn’t find a connector that works with the Confluent Schema Registry to deserialize Protobuf messages when using the Flink SQL API.
> Question: Is there a Flink SQL connector that supports deserializing Protobuf messages from Confluent Kafka with Schema Registry integration? If not, what’s the recommended approach to achieve this?
> This proto format: https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/table/formats/protobuf/ does not work with confluent Wire Format i.e.:
> Magic byte (1 byte, always 0) → identifies Confluent’s wire format.
> Schema ID (4 bytes, big-endian) → the ID of the schema stored in Confluent Schema Registry.
> Optional data for Protobuf/JSON (like field indexes).
> The actual serialized Protobuf message.
> From confluent I found this on maven repo: https://mvnrepository.com/artifact/io.confluent.flink/flink-sql-connector-kafka
> but I am not sure if it works with self-managed flink and if so, how should I write the query for this connector? Anyone has idea how to deserilize confluent kafka proto messages with flink SQL API?
> 
>  BRs,
> Javad Saljooghi
> 
> 
> 
> Javad Saljooghi
> Cloud Backend Engineer
> 
> 
> 
> 
>