Is there a way to return the number of messages sent to Kafka using KafkaExport?
HyeontaeJu
Vertica Customer ✭
Is there a way to return the number of messages sent to Kafka using KafkaExport?
0
Answers
You should be able to use KAFKACAT to list the messages sent to Kafka from Vertica.
Something like:
./kafkacat -C -t <Topic> -b <Broker>
See:
https://www.vertica.com/docs/latest/HTML/Content/Authoring/KafkaIntegrationGuide/TroubleShooting/UsingKafkacatToTroubleShootIssues.htm
The number of messages produced to Kafka should match the number of rows returned by the query used in KafkaExport MINUS any error reported by KafkaExport.
@Jim_Knicely, @SergeB
Then,, Is it impossible return the number of message sent to Kafka topic immediately after KafkaExport query executing?
You could determine the number of rows from your select statement (select count(*)....) immediately before or after calling KafkaExport