Confluent
CCDAK · Question #27
How will you find out all the partitions without a leader?
The correct answer is C. kafka-topics.sh --zookeeper localhost:2181 --describe --unavailable-partitions. Please note that as of Kafka 2.2, the --zookeeper option is deprecated and you can now usekafka- topics.sh --bootstrap-server localhost:9092 --describe --unavailable-partitions
Deployment and Troubleshooting
Question
How will you find out all the partitions without a leader?
Options
- Akafka-topics.sh --broker-list localhost:9092 --describe --under-replicated-partitions
- Bkafka-topics.sh --bootstrap-server localhost:2181 --describe --unavailable-partitions
- Ckafka-topics.sh --zookeeper localhost:2181 --describe --unavailable-partitions
- Dkafka-topics.sh --zookeeper localhost:2181 --describe --under-replicated-partitions
How the community answered
(20 responses)- A5% (1)
- C90% (18)
- D5% (1)
Explanation
Please note that as of Kafka 2.2, the --zookeeper option is deprecated and you can now usekafka- topics.sh --bootstrap-server localhost:9092 --describe --unavailable-partitions
Topics
#kafka-topics.sh#unavailable partitions#partition leadership#cluster inspection
Community Discussion
No community discussion yet for this question.