I'm trying to produce message using kafka-console-producer. but end up with the following error.
$ /usr/bin/kafka-console-producer --broker-list confluent-kafka-0-service.ms-kafka-internal.svc:9092 --topic testTopic --producer.config ~/etc/kafka/client_security.properties
[2020-08-09 06:37:52,844] INFO Kafka version: 5.4.2-ccs (org.apache.kafka.common.utils.AppInfoParser) [2020-08-09 06:37:52,845] INFO Kafka commitId: 2626d8cfb686c23e (org.apache.kafka.common.utils.AppInfoParser) [2020-08-09 06:37:52,845] INFO Kafka startTimeMs: 1596955072646 (org.apache.kafka.common.utils.AppInfoParser)
Hi Welcome to Confluent Kafka [2020-08-09 06:38:55,451] ERROR Error when sending message to topic testTopic with key: null, value: 2 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback) org.apache.kafka.common.errors.TimeoutException: Topic testTopic not present in metadata after 60000 ms.
I have run the below consumer command to see the messages. But then also no messages have been seen.
/usr/bin/kafka-console-consumer --bootstrap-server confluent-kafka-0-service.ms-kafka-internal.svc:9092 --topic testTopic --from-beginning --consumer.config ~/etc/bmw/kafka/client_security.properties
Any immediate help would much appreciated.
Thanks, Mina