-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting to Zookeeper to edit topic configs #290
Comments
I should also caveat that I am able to access CLI tools using I found the Kafka CLI tools by kubectl exec into one of the Zookeeper pods, however I'm still not sure how to connect to Zookeeper from inside this pod. I tried the following from the bin folders (again using the default zookeeper yamls from this repo):
What address would I use internally to connect to Zookeeper? I get the same error for all of these.
|
First of all, thank you so much for this awesome repo, but I've been working on this specific issue for awhile and I can't find a solution and figured it would be helpful to others.
I am running the basic setup using the latest version of this repo on GKE. I have 3 Kafka brokers running with 2 pzoo and 3 zoo pods and the zookeeper service to make it accessible internally on 2181 (all unmodified files from this repo except CPU and memory increased). I can access my brokers externally with the Nodeport config described in this repo no problem and my whole system works for producing and consuming and I can view records externally in Kadeck.
My problem is that I need to be able to configure individual topics like log retention days, etc... normally I do this using the Kafka CLI tools, but you have to pass the zookeeper address (not the brokers). I tried to make
zookeeper/30service.yml
into a Nodeport with a nodeport of 32181. I made sure this port was open on my firewall and it's configured the same as the brokers so I'm confident this isn't the issue. I still can't connect to Zookeeper externally though usingkafka-topics --zookeeper <cluster_node_ip>:32181 --list
which times out.I then thought I would then try to use these tools to connect by kubectl exec into one of the brokers, but they don't have Kafka CLI tools installed.
I also tried to load up Yahoo Kafka Manager since I think you can configure topics using that but I am getting the same error as this issue #260. I've tried setting the env
ZK_HOSTS
to both the defaultzookeeper.kafka:2181
as well aszookeeper.kafka.svc.cluster.local:2181
which is more akin to the hostname I use for connecting to the brokers, but no luck.This seems like a simple/common task so before I go making a custom deployment just to install Kafka CLI tools interact with Zookeeper instance internally, I'm wondering if I'm doing something wrong here? How are others editing topic configs?
Thanks for any insights!
The text was updated successfully, but these errors were encountered: