Reputation: 1513
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
zookeeper
with this command:bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
topic
named quickstart-events
at port localhost:9092
:bin/kafka-console-producer.sh --topic quickstart-events --bootstrap-server localhost:9092
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.
Upvotes: 0
Views: 139
Reputation: 1821
Based on your company nameserver the next procedure should be done in your wsl instance To gain outside connection
unable to access network from WSL2
You need to set bootstrap-server to your company server
--bootstrap-server my.company.com:9092
Upvotes: 1