You cannot use colons on the CLI.
If you want to use your property file, then pass --producer.config
with the producer.properties
file
Otherwise, you can use kafka-avro-console-producer
along with --producer-property key.serializer=io.confluent.kafka.serializers.KafkaAvroSerializer
As for the Avro serializers, you appear to be missing any key.schema
or value.schema
+ schema.registry.url
, which are only properties read by the kakfa-avro-console-producer
and would explain why your Avro consumer would be unable to read the data (it was sent as plaintext)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…