Skip to content

Instantly share code, notes, and snippets.

@Jongbhin
Created June 19, 2020 02:17
Show Gist options
  • Save Jongbhin/0919574e2d1f21aae9c9bae4b2778c58 to your computer and use it in GitHub Desktop.
Save Jongbhin/0919574e2d1f21aae9c9bae4b2778c58 to your computer and use it in GitHub Desktop.
[kafka] kafka reference

Zookeeper and Kafka start

nohup ./bin/zookeeper-server-start.sh ./config/zookeeper.properties &
nohup ./bin/kafka-server-start.sh ./config/server.properties &

Create a topic

./bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 20 --topic test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment