|
1 | 1 | #!/bin/bash
|
2 | 2 | #
|
3 |
| -# Copyright (c) 2020, 2021 Oracle and/or its affiliates. |
| 3 | +# Copyright (c) 2020, 2023 Oracle and/or its affiliates. |
4 | 4 | #
|
5 | 5 | # Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 6 | # you may not use this file except in compliance with the License.
|
@@ -40,9 +40,39 @@ while sleep 2; do
|
40 | 40 | --replication-factor 1 \
|
41 | 41 | --partitions 10 \
|
42 | 42 | --topic messaging-test-topic-2
|
| 43 | + bash $KAFKA_TOPICS \ |
| 44 | + --create \ |
| 45 | + --replication-factor 1 \ |
| 46 | + --partitions 10 \ |
| 47 | + --config compression.type=snappy \ |
| 48 | + --topic messaging-test-topic-snappy-compressed |
| 49 | + bash $KAFKA_TOPICS \ |
| 50 | + --create \ |
| 51 | + --replication-factor 1 \ |
| 52 | + --partitions 10 \ |
| 53 | + --config compression.type=lz4 \ |
| 54 | + --topic messaging-test-topic-lz4-compressed |
| 55 | + bash $KAFKA_TOPICS \ |
| 56 | + --create \ |
| 57 | + --replication-factor 1 \ |
| 58 | + --partitions 10 \ |
| 59 | + --config compression.type=zstd \ |
| 60 | + --topic messaging-test-topic-zstd-compressed |
| 61 | + bash $KAFKA_TOPICS \ |
| 62 | + --create \ |
| 63 | + --replication-factor 1 \ |
| 64 | + --partitions 10 \ |
| 65 | + --config compression.type=gzip \ |
| 66 | + --topic messaging-test-topic-gzip-compressed |
43 | 67 |
|
44 | 68 | echo
|
45 |
| - echo "Example topics messaging-test-topic-1 and messaging-test-topic-2 created" |
| 69 | + echo "Example topics created:" |
| 70 | + echo " messaging-test-topic-1" |
| 71 | + echo " messaging-test-topic-2" |
| 72 | + echo " messaging-test-topic-snappy-compressed" |
| 73 | + echo " messaging-test-topic-lz4-compressed" |
| 74 | + echo " messaging-test-topic-zstd-compressed" |
| 75 | + echo " messaging-test-topic-gzip-compressed" |
46 | 76 | echo
|
47 | 77 | echo "================== Kafka is ready, stop it with Ctrl+C =================="
|
48 | 78 | exit 0
|
|
0 commit comments