kafka-log-dirs.sh: describe the log directories of brokers
kafka-log-dirs.sh [options]
Options you will use
--bootstrap-server <String: server to connect to>- REQUIRED: the Kafka broker(s) to connect to, host:port[,host:port]. Give more than one: the first may be the broker that is down.
--describe- REQUIRED.
--broker-list <String>- the brokers to query (default: all).
--topic-list <String>- only these topics.
Gotchas
- The answer is JSON: per broker, per log dir, every replica with its size and offsetLag.
Taught in
Try kafka-log-dirs.sh in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.