1
0
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:
2019-03-18 15:59:54 +08:00
parent 71bd27f530
commit c4e390d310
4 changed files with 133 additions and 49 deletions

View File

@@ -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
```