From a867af892dcc4978bb8f6b55996f822f63875b79 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 8 Aug 2022 23:25:42 +0200 Subject: [PATCH] =?utf8?q?Nicht=20ben=C3=B6tigte=20Ausgaben=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/README.sh b/README.sh index 8a9f790..3bc7e8a 100755 --- a/README.sh +++ b/README.sh @@ -29,41 +29,29 @@ docker-compose up -d while ! [[ $(http 0:8081/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for acks-1..."; sleep 1; done while ! [[ $(http 0:8082/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for acks-all..."; sleep 1; done -kafkacat -L -b :9092 -docker-compose exec cli kafka-topics --bootstrap-server kafka:9092 --describe --topic test # tag::foo[] echo foo | http -v :8081/acks-1 echo foo | http -v :8082/acks-all kafkacat -C -b :9092 -t test -o 0 -e -f'p=%p|o=%o|k=%k|v=%s\n' # end::foo[] -sleep 1 -kafkacat -L -b :9092 -docker-compose exec cli kafka-topics --bootstrap-server kafka:9092 --describe --topic test -kafkacat -C -b :9092 -t test -o 0 -e -f'p=%p|o=%o|k=%k|v=%s\n' # tag::stop[] docker-compose stop kafka-1 -kafkacat -L -b :9092 -# end::stop[] docker-compose exec cli kafka-topics --bootstrap-server kafka:9092 --describe --topic test +# end::stop[] time echo bar | http -v :8081/acks-1 time echo bar | http -v :8081/acks-1 time echo bar | http -v :8082/acks-all time echo bar | http -v :8082/acks-all sleep 1 -kafkacat -L -b :9092 -docker-compose exec cli kafka-topics --bootstrap-server kafka:9092 --describe --topic test kafkacat -C -b :9092 -t test -o 0 -e -f'p=%p|o=%o|k=%k|v=%s\n' docker-compose stop kafka-3 -kafkacat -L -b :9092 docker-compose exec cli kafka-topics --bootstrap-server kafka:9092 --describe --topic test time echo foobar | http -v :8081/acks-1 time echo foobar | http -v :8081/acks-1 time echo foobar | http -v :8082/acks-all sleep 1 -kafkacat -L -b :9092 -docker-compose exec cli kafka-topics --bootstrap-server kafka:9092 --describe --topic test kafkacat -C -b :9092 -t test -o 0 -e -f'p=%p|o=%o|k=%k|v=%s\n' -- 2.20.1