Is protobuf supported? #123
-
Hi, We want to consume a kafka topic where the messages are serialized using protobuf. When running the workers (in k8s) we did set the following env vars: - name: CONNECT_KEY_CONVERTER
value: org.apache.kafka.connect.storage.StringConverter
- name: CONNECT_VALUE_CONVERTER
value: io.confluent.connect.protobuf.ProtobufConverter
- name: CONNECT_CONSUMER_VALUE_CONVERTER
value: io.confluent.connect.protobuf.ProtobufConverter
- name: CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL
value: http://localhost:8081
- name: CONNECT_CONSUMER_VALUE_CONVERTER_SCHEMA_REGISTRY_URL
value: http://localhost:8081 but we're getting this error:
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It seems the right configuration, as this is specified here |
Beta Was this translation helpful? Give feedback.
-
Hi @danifullview - are you folks using Confluent Cloud (and a local instance of Kafka Connect)? If you're using their cloud environment, CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL should be set to the actual instance of Schema Registry (if you go to "CLI and Tools" -> "Kafka Connect" they have a section about Schema registry) You would also need to specify CONNECT_CONSUMER_BASIC_AUTH_CREDENTIALS_SOURCE and CONNECT_CONSUMER_BASIC_AUTH_USER_INFO (it should give you all that info on the page) |
Beta Was this translation helpful? Give feedback.
Hi @danifullview - are you folks using Confluent Cloud (and a local instance of Kafka Connect)?
If you're using their cloud environment, CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL should be set to the actual instance of Schema Registry (if you go to "CLI and Tools" -> "Kafka Connect" they have a section about Schema registry)
You would also need to specify CONNECT_CONSUMER_BASIC_AUTH_CREDENTIALS_SOURCE and CONNECT_CONSUMER_BASIC_AUTH_USER_INFO (it should give you all that info on the page)