Complete the code to start Kafka Manager with the default port.
bin/kafka-manager [1]The default port for Kafka Manager UI is 9000, so you need to specify -Dhttp.port=9000 to start it on that port.
Complete the configuration line to add a Kafka cluster in Kafka Manager.
kafka-manager.zkhosts=[1]The zkhosts setting requires the ZooKeeper host and port, which is usually localhost:2181.
Fix the error in the command to start Kafka Manager with a custom config file.
bin/kafka-manager -Dconfig.file=[1]The Kafka Manager config file must be a .conf file, usually named application.conf.
Fill both blanks to create a dictionary comprehension that maps topic names to their partition count if partitions are more than 3.
{topic: [1] for topic, partitions in topics.items() if partitions [2] 3}This comprehension maps each topic to its partition count only if the partition count is greater than 3.
Fill all three blanks to filter topics with more than 5 partitions and create a dictionary with uppercase topic names and their partition counts.
{ [1]: [2] for [3], partitions in topics.items() if partitions > 5 }The comprehension creates a dictionary with uppercase topic names as keys and their partition counts as values, filtering only topics with more than 5 partitions.