- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Kafka producer and consumer console subsribe multiple topic ubuntu
- Labels:
-
Apache Kafka
Created 01-02-2017 08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use Ubuntu server 16.04 to try using Kafka, for the command to start producer and consumer console i use
Producer console : bin/kafka-console-producer.sh --broker-list localhost:9092 --topic hello-topic
consumer console : bin/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic hello-topic
but command above only subsribe to one topic, how can i subsribe to multiple topic?
Thanks.
Created 01-02-2017 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Console consumer does not support multiple topics.
You need to run separate consumer for each topic.
Created 01-02-2017 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Console consumer does not support multiple topics.
You need to run separate consumer for each topic.
