- ZooKeeper
- Path:
/Users/wuyichen/zookeeper-3.4.14/bin
- Commands
- Start:
sh zkServer.sh start
- Stop:
sh zkServer.sh stop
- Start:
- Port: 2181
- Path:
- Kafka
- Path:
/Users/wuyichen/kafka_2.11-2.2.0/bin
- Commands
- Start:
sh kafka-server-start.sh ../config/server.properties
- Stop: Press Crtl+C
- List all topics:
bash kafka-topics.sh --list --zookeeper localhost:2181
- Create a topic:
bash kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic <topic_name>
- Product a message to a topic:
bash kafka-console-producer.sh --broker-list localhost:9092 --topic <topic_name>
- Consume a message from a topic:
bash kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic <topic_name> --from-beginning
- Start:
- Port: 9092
- Path:
- Kafka Connector Worker
- Path:
/Users/wuyichen/kafka_2.11-2.2.0/bin
- Commands
- Start:
sh connect-distributed.sh ../config/connect-distributed.properties
- Stop: Press Crtl+C
- Start:
- Port: 8083
- Path: