NoBrokersAvailable: NoBrokersAvailable-Kafka Error

前端 未结 6 1134
南旧
南旧 2021-01-12 12:13

i have already started to learn Kafka. Trying basic operations on it. I have stucked on a point which about the \'Brokers\'.

My kafka is running but when i want to

6条回答
  •  执笔经年
    2021-01-12 12:47

    It looks like you want to start consuming messages instead of creating partions. Nevertheless - can you reach kafka at port 1234? 9092 is kafkas default port maybe you can try this one. If you found the right port but your application still produces errors you can try to use a console consumer to test your setup:

    bin/kafka-console-producer.sh --broker-list localhost: --topic foobar

    The console consumer is part of the standard kafka distribution. Maybe that gets you a little closer to the source of the problem.

提交回复
热议问题