KafkaConnect Connector Resource not able to connect to kafka cluster #5442
Unanswered
alpacino12
asked this question in
Q&A
Replies: 2 comments 6 replies
-
If you format the YAML as a code, it will be much more readable and easier to detect any whitespaces issues etc. Also, can you please share the Kafka custom resource with your Kafka cluster configuration? Without that it is hard to say if you configured it correctly or not. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here's the yaml file i'm using to start the kafkaConnect pod
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have deployed a 3 node Strimzi kafka Cluster having strimzi operator version 0.23 inside Azure Kubernetes Cluster .The Cluster and kafka/zookeeper pods are up and running . Strimzi kafka image used is strimzi/kafka:0.23.0-kafka-2.7.0
tushar@Azure:~$ kubectl get pods -n strimzi-kafka-aks-cluster
NAME READY STATUS RESTARTS AGE
my-connect-cluster-connect-7b4cd65946-c9qjg 0/1 CrashLoopBackOff 25 112m
strimzi-kafka-aks-cluster-entity-operator-665645cc-wcgdn 3/3 Running 0 11d
strimzi-kafka-aks-cluster-kafka-0 1/1 Running 0 11d
strimzi-kafka-aks-cluster-kafka-1 1/1 Running 0 11d
strimzi-kafka-aks-cluster-kafka-2 1/1 Running 0 11d
strimzi-kafka-aks-cluster-zookeeper-0 1/1 Running 0 11d
strimzi-kafka-aks-cluster-zookeeper-1 1/1 Running 0 11d
strimzi-kafka-aks-cluster-zookeeper-2 1/1 Running 0 11d
I'm trying to create a kafkaconnect cluster but the connect container keeps on crashing . Here is the yaml deployment i'm using
I have tried with both tls config map and without , with spec.image tag and without but each time it gives connection failed to kafka broker error
When i describe the failed pod it says
Liveness probe failed: Get "http://10.244.5.25:8083/": dial tcp 10.244.5.25:8083: connect:connection refused
logs :
2021-08-17 16:43:58,000 ERROR Stopping due to error (org.apache.kafka.connect.cli.ConnectDistributed) [main]
org.apache.kafka.connect.errors.ConnectException: Failed to connect to and describe Kafka cluster. Check worker's broker connection and securityproperties.
at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:70)
at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:51)
at org.apache.kafka.connect.cli.ConnectDistributed.startConnect(ConnectDistributed.java:97)
at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:80)
Caused by: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Call(callName=listNodes, deadlineMs=1629218637936, tries=1, nextAllowedTryMs=1629218638070) timed out at 1629218637970 after 1 attempt(s)
at org.apache.kafka.common.internals.KafkaFutureImpl.wrapAndThrow(KafkaFutureImpl.java:45)
at org.apache.kafka.common.internals.KafkaFutureImpl.access$000(KafkaFutureImpl.java:32)
at org.apache.kafka.common.internals.KafkaFutureImpl$SingleWaiter.await(KafkaFutureImpl.java:89)
at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:260)
at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:64)
... 3 more
Caused by: org.apache.kafka.common.errors.TimeoutException: Call(callName=listNodes, deadlineMs=1629218637936, tries=1, nextAllowedTryMs=1629218638070) timed out at 1629218637970 after 1 attempt(s)
Caused by: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: listNodes
Is there any issue with the deployement here ? Why is the connect instance not able to connect to the kafka cluster
Beta Was this translation helpful? Give feedback.
All reactions