mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-12-15 05:56:43 +00:00
bugfix, add query stat
This commit is contained in:
32
README.md
32
README.md
@@ -1 +1,31 @@
|
||||
# YAO-agent
|
||||
# YAO-agent
|
||||
|
||||
|
||||
```bash
|
||||
bin/kafka-topics.sh \
|
||||
--describe \
|
||||
--zookeeper zookeeper_node1:2181,zookeeper_node2:2181,zookeeper_node3:2181 \
|
||||
--topic yao
|
||||
```
|
||||
|
||||
```bash
|
||||
bin/kafka-topics.sh \
|
||||
--create \
|
||||
--zookeeper zookeeper_node1:2181,zookeeper_node2:2181,zookeeper_node3:2181 \
|
||||
--replication-factor 3 \
|
||||
--partitions 1 \
|
||||
--topic yao
|
||||
```
|
||||
|
||||
```bash
|
||||
bin/kafka-console-consumer.sh \
|
||||
--bootstrap-server kafka_node1:9091,kafka_node2:9092,kafka_node3:9093 \
|
||||
--topic yao \
|
||||
--from-beginning
|
||||
```
|
||||
|
||||
```bash
|
||||
bin/kafka-console-producer.sh \
|
||||
--broker-list kafka_node1:9091,kafka_node2:9092,kafka_node3:9093 \
|
||||
--topic yao
|
||||
```
|
||||
Reference in New Issue
Block a user