Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active July 28, 2022 04:09
Show Gist options
  • Save garystafford/c25dfb6c7fb78bb55b2ae7fdfa821051 to your computer and use it in GitHub Desktop.
Save garystafford/c25dfb6c7fb78bb55b2ae7fdfa821051 to your computer and use it in GitHub Desktop.
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