http://cloudurable.com/blog/kafka-tutorial-kafka-from-command-line/index.html
Install Confluent kafka
Install Confluent kafka
cd ~/confluent-3.3.1/bin
$ ./kafka-console-producer --broker-list localhost:9092 -topic fizzbuzz
>msg 1
>msg 2
>msg 3
>msg 4
>^C
$ ./kafka-console-consumer --bootstrap-server localhost:9092 --topic fizzbuzz --from-beginning
testing
the message sending
msg 1
msg 2
msg 3
msg 4
No comments:
Post a Comment