2017-05-27 97 views
0

我下面的快速啓動卡夫卡的指示,根據https://kafka.apache.org/quickstart卡夫卡快速啓動與問題

的飼養員和卡夫卡服務器正常啓動,但這些消息要麼不發送或接收。

C:\ Java2017 \ kafka_2.11-0.10.2.0 \ kafka_2.11-0.10.2.0 \ bin \ windows> kafka-console-producer --broker-list localhost:9092 --topic test testing .. 。

C:\ Java2017 \ kafka_2.11-0.10.2.0 \ kafka_2.11-0.10.2.0 \ bin \ windows> kafka-console-consumer --bootstrap-server localhost:9092 --topic test --from -beginning

+0

您收到了哪些消息? – BrianAtkins

回答

0

你可能會做在實踐中正確的事,但你上面指定的生產者命令應該是這樣的:

C:\Java2017\kafka_2.11-0.10.2.0\kafka_2.11-0.10.2.0\bin\windows>kafka-console-producer --broker-list localhost:9092 --topic test 
>testing... 
>[Ctrl-C] 
C:\Java2017\kafka_2.11-0.10.2.0\kafka_2.11-0.10.2.0\bin\windows> 

如果像這樣運行,將不會生成任何內容:

C:\Java2017\kafka_2.11-0.10.2.0\kafka_2.11-0.10.2.0\bin\windows>kafka-console-producer --broker-list localhost:9092 --topic test testing...