Complete the code to specify the serializer for JSON Schema in Kafka producer configuration.
props.put("value.serializer", [1]);
To use JSON Schema serialization in Kafka, you must set the value.serializer to io.confluent.kafka.serializers.KafkaJsonSchemaSerializer.
Complete the code to specify the deserializer for Protobuf in Kafka consumer configuration.
props.put("value.deserializer", [1]);
For Protobuf deserialization in Kafka consumers, use io.confluent.kafka.serializers.KafkaProtobufDeserializer as the value.deserializer.
Fix the error in the schema registry URL configuration for Kafka producer.
props.put("schema.registry.url", [1]);
The schema registry URL must include the protocol (http:// or https://) and the port number, for example http://localhost:8081.
Fill both blanks to configure Kafka producer for Protobuf serialization with schema registry.
props.put("value.serializer", [1]); props.put("schema.registry.url", [2]);
For Protobuf serialization, use KafkaProtobufSerializer and specify the schema registry URL with protocol and port.
Fill all three blanks to create a Kafka consumer configuration for JSON Schema deserialization with schema registry URL and group ID.
props.put("value.deserializer", [1]); props.put("schema.registry.url", [2]); props.put("group.id", [3]);
Use KafkaJsonSchemaDeserializer for JSON Schema deserialization, specify the schema registry URL with protocol and port, and set a group ID for the consumer.