# kafka-stream-sample **Repository Path**: datacare/kafka-stream-sample ## Basic Information - **Project Name**: kafka-stream-sample - **Description**: Kafka Stream流计算示例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [TOC] # KAFKA 常用命令 ## 启动命令 ``` ./zookeeper-server-start.sh -daemon ../config/zookeeper.properties ./kafka-server-start.sh -daemon ../config/server.properties ``` ## TOPIC相关命令 ### 创建TOPIC ``` ./kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic TextLinesTopic ./kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic WordsWithCountsTopic ``` ### 查询TOPIC LIST ``` ./kafka-topics.sh --list --bootstrap-server localhost:9092 ```