Tristan Tran
Tristan Tran

Reputation: 1513

Consuming Kafka: the basics

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

bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-console-producer.sh --topic quickstart-events --bootstrap-server localhost:9092 
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

Answers (1)

Ran Lupovich
Ran Lupovich

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

Related Questions