-
Notifications
You must be signed in to change notification settings - Fork 0
/
kafka
18 lines (18 loc) · 1.15 KB
/
kafka
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
kafka-console-producer.sh --broker-list localhost:9092 --topic first
kafka-console-producer.sh --zookeeper localhost:2181 --topic first
kafka-console-consumer.sh --zookeeper localhost:2181 --topic first
kafka-console-consumer.sh --zookeeper localhost:2181 --topic first
kafka-server-start.sh server.properties &
ps -ef | grep kafka
ps aux | grep kafka
kafka-topics.sh --zookeeper localhost:2181 --create --topic first --partitions 2 --replication-factor 2
kafka-topics.sh --zookeeper localhost:2181 --describe --topic first
kafka-console-producer.sh --broker-list localhost:9092 --topic first
kafka-console-consumer.sh --zookeeper localhost:2181 --topic first
kafka-console-producer.sh --broker-list localhost:9092 --topic first
kafka-topics.sh --zookeeper localhost:2181 --describe --topic first
kafka-console-producer.sh --broker-list localhost:9092 --topic first
kafka-console-consumer.sh --broker-list localhost:2181 --topic first
kafka-topics.sh --zookeeper localhost:2181 --describe --topic first
kafka-topics.sh --zookeeper localhost:2181 --create --topic first --partitions 2 --replication-factor 2
kafka-topics.sh --zookeeper localhost:2181 --describe --topic first