-
Notifications
You must be signed in to change notification settings - Fork 734
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
GKE Kafkacat Error: Name or service not known #99
Comments
You seem to get the internal DNS name at bootstrap, but the "outside" port: Can you find the string |
after running 10broker-config.yml which includes init.sh, it shows up as I also noticed in
By config, did you mean in
|
Got kafkacat to produce and consume messages! In the file
and I used this line for Labeling the kafka-0 pod was done manually after deploying the statefulset. Athough I hardcoded most of it for 1 kafka pod and it is not automatically set up for multiple kafka pods yet, this is a good start if you plan to use GCE. |
I am facing the same issue. I am using Kubernetes Statefulset to deploy kafka. Here is my Yaml file.
When I check my logs, kafka is working fine. Here are the config values:-
When I run Maybe it is because of |
I'm also face this kinds of issue when publish the topic outside kafkacat command line to kafka cluster of k8s 3 brokers: root@esbuat:/root/ # kafkacat -b kafka.dsw-dia-dataflow-877236.us-south.containers.appdomain.cloud:19092 -t test -C any idea? Levi |
I am currently trying this setup on GCE. Kubernetes cluster node internal IP address is the same as GCE VM and everything is tested on the
default
namespace.I created the topic internally and can produce and consume messages internally. But when I am trying to consume a message externally via kafkacat, I am receiving a name or service not known error: (advertised.listener issue perhaps?)
kafkacat is able to find the broker and list the topic:
Using grep, i get:
Below is my
server.properties
from SSH into kafka-0 pod (everything fromlog basics
was excluded)I notice that from the
init.sh
file that only thebroker.id
was set,broker.rack
failed but don't need it, andadvertised.listener
was not changed at all. I manually setadvertised.listener
to[kubernetes-cluster-IP]:32400
Using the outside-0 service:
Related to issue #13 @solsson
Any help would be much appreciated, thanks.
The text was updated successfully, but these errors were encountered: