Hi,--I am trying to run the tutorial here https://www.confluent.io/blog/kafka-connect-cassandra-sink-the-perfect-match/when i try to set the value schema with the following command:./kafka-avro-console-producer --broker-list localhost:9092 --topic orders-topic --property value.schema='{"type":"record","name":"myrecord","fields":[{"name":"id","type":"int"}, {"name":"created", "type": "string"}, {"name":"product", "type": "string"}, {"name":"price", "type": "double"}]}'I get the following exception :org.apache.kafka.common.errors.SerializationException: Error deserializing json to Avro of schema {"type":"record","name":"myrecord","fields":[{"name":"id","type":"int"},{"name":"created","type":"string"},{"name":"product","type":"string"},{"name":"price","type":"double"}]}Caused by: java.io.EOFExceptionat org.apache.avro.io.JsonDecoder.advance(JsonDecoder.java:138)at org.apache.avro.io.JsonDecoder.readInt(JsonDecoder.java:166)at org.apache.avro.io.ValidatingDecoder.readInt(ValidatingDecoder.java:83)at org.apache.avro.generic.GenericDatumReader.readInt(GenericDatumReader.java:444)at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:159)at org.apache.avro.generic.GenericDatumReader.readField(GenericDatumReader.java:193)at org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:183)at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:151)at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:142)at io.confluent.kafka.formatter.AvroMessageReader.jsonToAvro(AvroMessageReader.java:189)at io.confluent.kafka.formatter.AvroMessageReader.readMessage(AvroMessageReader.java:157)at kafka.tools.ConsoleProducer$.main(ConsoleProducer.scala:55)at kafka.tools.ConsoleProducer.main(ConsoleProducer.scala)Also I am sure that zookeeper, kafka, schema registry and cassandra sink are running in different terminals . When I run the command i see no error in any other process such as zookeeper or kafka.Any help would be appreciated.Kind Regards,Ioannis
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/7947f115-2bfa-4af6-9418-4994522e78e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.