We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d188e commit 2d2a3b8Copy full SHA for 2d2a3b8
local/kafka-client/create-topics.sh
@@ -2,5 +2,5 @@
2
3
/opt/kafka/bin/kafka-topics.sh --list --zookeeper zookeeper:2181 > exists-topics.txt
4
while read topic; do
5
- /opt/kafka/bin/kafka-topics.sh --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic $topic
+ /opt/kafka/bin/kafka-topics.sh --create --if-not-exists --zookeeper zookeeper:2181 --partitions 10 --replication-factor 1 --topic $topic
6
done < <(sort topics.txt exists-topics.txt exists-topics.txt | uniq -u)
0 commit comments