Last active
July 28, 2022 04:09
-
-
Save garystafford/c25dfb6c7fb78bb55b2ae7fdfa821051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd kafka_2.12-2.8.1 | |
# *** CHANGE ME *** | |
export BOOTSTRAP_SERVER=<your_bootstrap_server> # e.g., boot-12ab34cd.c2.kafka-serverless.us-east-1.amazonaws.com:9098 | |
bin/kafka-topics.sh --create --topic topicA \ | |
--partitions 6 \ | |
--bootstrap-server $BOOTSTRAP_SERVER \ | |
--command-config config/client.properties | |
bin/kafka-topics.sh --create --topic topicB \ | |
--partitions 6 \ | |
--bootstrap-server $BOOTSTRAP_SERVER \ | |
--command-config config/client.properties | |
bin/kafka-topics.sh --create --topic topicC \ | |
--partitions 6 \ | |
--bootstrap-server $BOOTSTRAP_SERVER \ | |
--command-config config/client.properties | |
# list topics to confirm creation | |
bin/kafka-topics.sh --list \ | |
--bootstrap-server $BOOTSTRAP_SERVER \ | |
--command-config config/client.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment