Skip to main content

Posts

Showing posts from September, 2020

Cheatsheet: Kafka

       Start Zookeeper: bin/zookeeper-server-start.sh config/zookeeper.properties Start Kafka: bin/kafka-server-start.sh config/server.properties Create topic: kafka-topics.sh --zookeeper 127.0.0.1:2181 --topic <--topic-name--> --create --partitions 2 --replication-factor 1 list topics: kafka-topics.sh --zookeeper 127.0.0.1:2181 --list describe topic: kafka-topics.sh --zookeeper 127.0.0.1:2181 -describe --topic <--topic-name--> delete topic: kafka-topics.sh --zookeeper 127.0.0.1:2181 --topic <--topic-name--> --delete produce message to topic: kafka-console-producer.sh --bootstrap-server 127.0.0.1:9092 -topic <--topic-name--> consume messages from topic: kafka-console-consumer.sh --bootstrap-server 127.0.0.1:9092 -topic <--topic-name--> --from-beginning Happy Coding  👨‍💻