Created
March 4, 2022 15:17
-
-
Save Tharlys10/ebb58e3e3ea7dc824a500842c81503a0 to your computer and use it in GitHub Desktop.
Commands Terminal Kafka
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
# Producer messages | |
kafka-console-producer --topic <name_topic> --bootstrap-server <host>:<port> | |
# Consumer messages | |
kafka-console-consumer --topic <name_topic> --bootstrap-server <host>:<port> | |
# -> --group <name_group> | |
# List consumers groups | |
kafka-consumer-groups --list --bootstrap-server <host>:<port> | |
# Describe group | |
kafka-consumer-groups --describe --group <name_group> --bootstrap-server <host>:<port> | |
# Delete topic | |
kafka-topics --delete --topic <name_topic> --bootstrap-server <host>:<port> | |
# Create topic with number partitions | |
kafka-topics --create --topic <name_topic> --partitions <number_partitions> --bootstrap-server <host>:<port> | |
# Search describe topic | |
kafka-topics --describe --topic <name_topic> --bootstrap-server <host>:<port> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment