Closed rmoff closed 5 years ago
Attempted to reproduce this but was unsuccessful. Please advise on where I've gone wrong?
Spin up Kafka from CP 5.3.0, create topic and produce record:
$ ./bin/kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic data_mqtt-ccloud-1569933773
WARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.
Created topic data_mqtt-ccloud-1569933773.
$ ./bin/kafka-console-producer --broker-list localhost:9092 --topic data_mqtt-ccloud-1569933773
>{"batt":100,"lon":-122.410331480319,"acc":200,"p":100.79250335693359,"bs":2,"vel":0,"vac":10,"lat":37.786102294921875,"t":"u","conn":"w","tst":1569933739,"alt":23,"_type":"location","tid":"RM"}
>^C
Start KSQL server and CLI from master
(or 5.4.x-beta
, I tried both), issue print topic request:
ksql> print 'data_mqtt-ccloud-1569933773' from beginning;
Format:JSON
{"ROWTIME":1569955768777,"ROWKEY":"null","batt":100,"lon":-122.410331480319,"acc":200,"p":100.7925033569336,"bs":2,"vel":0,"vac":10,"lat":37.786102294921875,"t":"u","conn":"w","tst":1569933739,"alt":23,"_type":"location","tid":"RM"}
^C
and the message comes through as expected.
¯_(ツ)_/¯ let me know what other debug I can provide. The data sample I've provided is just one of many on the topic.
Are you able to consume data from the topic with kafka-console-consumer
? If so, can you share the output?
Also, are you able to print other topics through KSQL? (Would be good to sanity check that the issue is specific to this topic/its data, and not a more general issue.)
5.4.0-beta1
Server log:
Sample data: