From 09d798376b733f8aef4c62e1973c9615d554be1d Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 27 Apr 2025 14:23:17 +0200 Subject: [PATCH] WIP:sasl-client--broker-angepasst--admin-properties --- README.sh | 3 ++- client.properties => admin.properties | 0 docker-compose.yml | 11 +++++------ 3 files changed, 7 insertions(+), 7 deletions(-) rename client.properties => admin.properties (100%) diff --git a/README.sh b/README.sh index accfe4a..d774df5 100755 --- a/README.sh +++ b/README.sh @@ -11,7 +11,8 @@ docker compose up -d producer consumer docker compose up setup # client -docker-compose -f docker/docker-compose.yml exec cli kafka-acls \ +docker compose exec cli kafka-acls \ + --command-config /mnt/admin.properties \ --authorizer-properties zookeeper.connect=zookeeper \ --add \ --allow-principal User:client \ diff --git a/client.properties b/admin.properties similarity index 100% rename from client.properties rename to admin.properties diff --git a/docker-compose.yml b/docker-compose.yml index e74d367..efdae08 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -159,7 +159,7 @@ services: image: juplo/toolbox command: sleep infinity volumes: - - ./client.properties:/mnt/client.properties:ro + - ./admin.properties:/mnt/admin.properties:ro stop_grace_period: 0s depends_on: - kafka-1 @@ -169,12 +169,11 @@ services: setup: image: juplo/toolbox volumes: - - ./client.properties:/mnt/client.properties:ro + - ./admin.properties:/mnt/admin.properties:ro command: - bash - -c - | - cub kafka-ready -b kafka-1:9092,kafka-2:9092,kafka-3:9092 3 60 > /dev/null 2>&1 || exit 1 if [ -e INITIALIZED ] then echo -n Bereits konfiguriert: @@ -182,19 +181,19 @@ services: kafka-topics --bootstrap-server kafka:9092 --describe --topic test else kafka-topics --bootstrap-server kafka:9092 \ - --command-config /mnt/client.properties \ + --command-config /mnt/admin.properties \ --delete \ --if-exists \ --topic test kafka-topics --bootstrap-server kafka:9092 \ - --command-config /mnt/client.properties \ + --command-config /mnt/admin.properties \ --create \ --topic test \ --partitions 2 \ --replication-factor 3 \ --config min.insync.replicas=2 \ && echo Das Topic \'test\' wurde erfolgreich angelegt: \ - && kafka-topics --bootstrap-server kafka:9092 --command-config /mnt/client.properties --describe --topic test \ + && kafka-topics --bootstrap-server kafka:9092 --command-config /mnt/admin.properties --describe --topic test \ && date > INITIALIZED fi stop_grace_period: 0s -- 2.20.1