🖥️
Quick Guide
  • Home
  • Docker
    • Docker CLI Commands
    • Docker References
  • Azure
    • Azure CLI Commands
  • Git
    • Git Commands
  • best-practices
    • Best practices to create custom starter
  • conda
    • Conda Commands
    • Conda official references
  • django
    • Django Admin Commands
  • homebrew
    • homebrew-commands
  • kafka
    • kafka-commands
    • Kafka Official References
  • python
    • python-commands
    • python-references
  • windows
    • windows-commands
Powered by GitBook
On this page
  • Kafka Zookeeper
  • Kafka Server
  • Kafka Topic
  • Kafka Producer
  • Kafka Consumer
  1. kafka

kafka-commands

Kafka Zookeeper

Command
Description

bin/zookeeper-server-start.sh config/zookeeper.properties

Starts zookeeper

bin/zookeeper-server-stop.sh config/zookeeper.properties

Stops zookeeper

Kafka Server

Command
Description

bin/kafka-server-start.sh config/server.properties

Starts kafka server

bin/kafka-server-stop.sh config/server.properties

Stops kafka server

Kafka Topic

Command
Description

bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test

Creates topic

bin/kafka-topics.sh --list --bootstrap-server localhost:9092

Lists topics

Kafka Producer

Command
Description

bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test

Starts producer, ready to send messages

Kafka Consumer

Command
Description

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

Starts consumer, ready to receive messages

PreviouskafkaNextKafka Official References

Last updated 3 years ago