查看topics:
- ls /brokers/topics
- [mytopic]
查看topic所在的broker,下面例子,mytopic在broker 0 中管理。
- ls /brokers/topics/mytopic
- [0]
查看brocker中,某个topic有多少partition:
- get /brokers/topics/mytopic/0
- 3
查看brocker信息: 存在brocker 0
- ls /brokers/ids
- [0]
查看brocker详细信息:机器名-时间戳:机器IP:机器端口
- get /brokers/ids/0
- 10.217.12.109-1401950718319:10.217.12.109:9092
时间: 2024-11-04 14:12:43