Skip to content

Instantly share code, notes, and snippets.

@zinovyev
Last active February 6, 2020 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zinovyev/62b0074cdd58f06234693df34ff021ce to your computer and use it in GitHub Desktop.
Save zinovyev/62b0074cdd58f06234693df34ff021ce to your computer and use it in GitHub Desktop.
kafka base commands
# Create a topic
kafka-topics --create --bootstrap-server localhost:9092 --topic test --partitions 1 --replication-factor 1
# List existend topics
kafka-topics --list --bootstrap-server localhost:9092
# Start a consumer
kafka-console-consumer --bootstrap-server localhost:9092 --topic test --from-beginning
# Start a producer
kafka-console-producer --broker-list localhost:9092 --topic test
# Connectors
http://localhost:8083/connectors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment