Confluent
CCDAK · Question #44
When using plain JSON data with Connect, you see the following error messageorg.apache.kafka.connect.errors.DataExceptionJsonDeserializer with schemas.enable requires "schema" and "payload" fields…
The correct answer is C. Set key.converter.schemas.enable and value.converter.schemas.enable to false. You will need to set the schemas.enable parameters for the converter to false for plain text with
Developing with Kafka Connect
Question
When using plain JSON data with Connect, you see the following error messageorg.apache.kafka.connect.errors.DataExceptionJsonDeserializer with schemas.enable requires "schema" and "payload" fields and may not contain additional fields. How will you fix the error?
Options
- ASet key.converter, value.converter to JsonConverter and the schema registry url
- BUse Single Message Transforms to add schema and payload fields in the message
- CSet key.converter.schemas.enable and value.converter.schemas.enable to false
- DSet key.converter, value.converter to AvroConverter and the schema registry url
How the community answered
(36 responses)- A3% (1)
- B6% (2)
- C78% (28)
- D14% (5)
Explanation
You will need to set the schemas.enable parameters for the converter to false for plain text with
Topics
#Kafka Connect#JsonConverter#schemas.enable#configuration
Community Discussion
No community discussion yet for this question.