I am very new to Kafka. Following a few tutorials, I have the following questions regarding consuming actual Kafka topics.
The situation: there is a server in my workplace that is streaming Kafka topics. I have the topic name. I would like to consume this topic from my machine (Windows WSL2 Ubuntu). From this tutorial, I am able to
- Run
zookeeper
with this command:
bin/zookeeper-server-start.sh config/zookeeper.properties
- Create a broker with:
bin/kafka-server-start.sh config/server.properties
- Run a producer console, with a fake
topic
namedquickstart-events
at portlocalhost:9092
:
bin/kafka-console-producer.sh --topic quickstart-events --bootstrap-server localhost:9092
- Run a consumer console listening to
localhost:9092
and receive the streaming data from the producer:
bin/kafka-console-consumer.sh --topic quickstart-events --from-beginning --bootstrap-server localhost:9092
Now for my real situation: if I know the topic name, what else do I need in order to apply the same steps above to listen to it as a consumer? What are the steps involved? I read in other threads about tunnelling
with Jumphost
. How to do that?
I understand this question is rather generic. Appreciate any pointers to any relevant readings or guidance.