-
Notifications
You must be signed in to change notification settings - Fork 44
Error: Error connecting to node kafka-1.kafka-svc.kafka-kraft.svc.cluster.local:9093 #3
Comments
Had to expose 9093 on the kafka-svc after noticing it was trying to connect to |
Hi @0ni0nrings do you have any update on this issue? |
@0ni0nrings @Saveriu and you will get java.net.UnknownHostException: kafka-2.kafka-svc.kafka-kraft.svc.cluster.local error in kafka-0 pod because outher pods are down and kafka-0 is trying to connect with them. i have made some changes in entrypoint.sh file and created new image and it worked for me to run multiple instance. |
Hi, |
Hi @zMcKracken |
@PRAYAG-97 can you give us the changes you made ? |
@Firas-Zarai ENV KAFKA_VERSION=3.4.1 LABEL name="kafka" version=${KAFKA_VERSION} RUN wget -O /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz https://downloads.apache.org/kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz COPY ./entrypoint.sh / Entrypoint.sh #!/bin/bash NODE_ID=${HOSTNAME:6} CONTROLLER_QUORUM_VOTERS="" mkdir -p $SHARE_DIR/$NODE_ID CLUSTER_ID="q9D3LywhQWyj-d6AqBASmA" if [[ ! -f "$SHARE_DIR/cluster_id" && "$NODE_ID" = "0" ]]; then sed -e "s+^node.id=.+node.id=$NODE_ID+" kafka-storage.sh format -t $CLUSTER_ID -c /opt/kafka/config/kraft/server.properties exec kafka-server-start.sh /opt/kafka/config/kraft/server.properties |
Description
When deploying kakfa brokers using the guide as-is, the pods fails to stay running and terminate with
CrashLoopBackOff
✋ I have searched the open/closed issues and my issue is not listed.
Versions
Reproduction Code [Required]
https://github.com/IBM/kraft-mode-kafka-on-kubernetes
Expected behavior
Once the the resources are deployed, the pods should continue to stay in
running
state and kafka cluster should be available for consuming and producing events.Actual behavior
Additional context
The text was updated successfully, but these errors were encountered: