Kafka Console Producer returns nothing

Viewed 1231

Hi I'm going through the quick start and I'm running into an error where when I type in bin/kafka-console-producer.sh --broker-list localhost:9093 --topic first

I get nothing back when I'm expecting a text input to send the message to the Kafka producer. I have followed the instructions for a single and multi-broker set up but it doesn't seem like anything is working. My Zookeeper is running and I see the log files created in the correct log directories but nothing regarding my message.

I have also tried piping it like so cat test.txt | bin/kafka-console-producer.sh --broker-list localhost:9093 --topic first or echo test message | bin/kafka-console-producer.sh --broker-list localhost:9093 --topic first

Is there any other gotchas I should check out for?

1 Answers

The same thing happened to me. surprisingly bin\windows\kafka-console-producer.bat file had a size of 0. Just replaced with original file and it worked.

Related