I am trying out the kafka-console-producer.sh. I type something to the console and hit enter and I get tons of stack traces to the console like this. Appreciate any pointers.
Your broker-list
argument is pointing to Zookeeper instead of the actual broker.
The proper usage would be:
./bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
assuming your broker runs on port 9092
(default).
You can refer here for more information (your issue is described in Step 4: Send some messages
)