Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 1.06 KB

command_memo.md

File metadata and controls

24 lines (23 loc) · 1.06 KB

Command Memo

  • ZooKeeper
    • Path: /Users/wuyichen/zookeeper-3.4.14/bin
    • Commands
      • Start: sh zkServer.sh start
      • Stop: sh zkServer.sh stop
    • Port: 2181
  • 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
    • Port: 9092
  • 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
    • Port: 8083