This is an automated email from the ASF dual-hosted git repository.

yasith pushed a commit to branch worktree-reliability+server-hardening
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 80e235c39f842ae6f9bbfe6e119c56828fa97093
Author: yasithdev <[email protected]>
AuthorDate: Mon Mar 30 12:06:35 2026 -0400

    infra: replace unmaintained wurstmeister/kafka with apache/kafka 3.9.0
    
    wurstmeister/kafka hasn't been updated since 2021. Switch to the official
    Apache Kafka image with ZooKeeper mode (still needed for Helix cluster).
    Uses standard KAFKA_LISTENERS/KAFKA_ADVERTISED_LISTENERS instead of the
    deprecated KAFKA_ADVERTISED_HOST_NAME.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
 compose.yml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/compose.yml b/compose.yml
index 31b88d9c13..98d6afeda9 100644
--- a/compose.yml
+++ b/compose.yml
@@ -39,14 +39,19 @@ services:
       - "2181:2181"
 
   kafka:
-    image: wurstmeister/kafka:2.13-2.8.1
+    image: apache/kafka:3.9.0
     container_name: airavata-kafka
     restart: unless-stopped
     environment:
-      KAFKA_ADVERTISED_HOST_NAME: localhost
+      KAFKA_NODE_ID: 1
+      KAFKA_PROCESS_ROLES: broker
+      KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
+      KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
+      KAFKA_CONTROLLER_QUORUM_VOTERS: ""
       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
     volumes:
-      - kafka_data:/kafka
+      - kafka_data:/var/lib/kafka/data
     ports:
       - "9092:9092"
     depends_on:

Reply via email to