From: Kai Moritz Date: Tue, 9 Apr 2024 16:51:49 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=4acead49ade4670b32861a050fbabc709d20c6cb;p=demos%2Fkafka%2Ftraining WIP --- diff --git a/README.sh b/README.sh index a955e3a..5096798 100755 --- a/README.sh +++ b/README.sh @@ -33,5 +33,5 @@ kafkacat -C -b :9092 -Xsecurity.protocol=sasl_plaintext -Xsasl.mechanisms=PLAIN kafkacat -L -b :9092 -Xsecurity.protocol=sasl_plaintext -Xsasl.mechanisms=PLAIN -Xsasl.username=client -Xsasl.password=client-secret -docker compose exec cli kafka-configs --bootstrap-server kafka:9092 --alter --add-config 'producer_byte_rate=4096,consumer_byte_rate=4096' --entity-type clients --entity-name juplo -docker compose exec cli kafka-configs --bootstrap-server kafka:9092 --describe --entity-type clients --entity-name juplo +docker compose exec cli kafka-configs --bootstrap-server kafka:9091 --alter --add-config 'producer_byte_rate=4096,consumer_byte_rate=4096' --entity-type clients --entity-name juplo +docker compose exec cli kafka-configs --bootstrap-server kafka:9091 --describe --entity-type clients --entity-name juplo diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 7cc92e0..db1e7a0 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -22,6 +22,7 @@ services: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false" KAFKA_SUPER_USERS: User:ANONYMOUS + KAFKA_LOG4J_LOGGERS: kafka.authorizer.logger=INFO KAFKA_LISTENER_NAME_DOCKER_SASL_ENABLED_MECHANISMS: PLAIN KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: | org.apache.kafka.common.security.plain.PlainLoginModule required \ @@ -64,6 +65,7 @@ services: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false" KAFKA_SUPER_USERS: User:ANONYMOUS + KAFKA_LOG4J_LOGGERS: kafka.authorizer.logger=INFO KAFKA_LISTENER_NAME_DOCKER_SASL_ENABLED_MECHANISMS: PLAIN KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: | org.apache.kafka.common.security.plain.PlainLoginModule required \ @@ -111,6 +113,7 @@ services: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false" KAFKA_SUPER_USERS: User:ANONYMOUS + KAFKA_LOG4J_LOGGERS: kafka.authorizer.logger=INFO KAFKA_LISTENER_NAME_DOCKER_SASL_ENABLED_MECHANISMS: PLAIN KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: | org.apache.kafka.common.security.plain.PlainLoginModule required \