Complete the code to set the broker ID in the Kafka server properties.
broker.id=[1]The broker.id must be a unique integer for each Kafka broker.
Complete the code to specify the port number the Kafka broker listens on.
listeners=PLAINTEXT://:[1]The default Kafka broker port is 9092.
Fix the error in the configuration line to correctly set the log directory.
log.dirs=[1]The log directory path must be an absolute path without spaces.
Fill both blanks to configure the number of partitions and replication factor for a topic.
num.partitions=[1] default.replication.factor=[2]
Common default settings are 3 partitions and replication factor of 2 for fault tolerance.
Fill all three blanks to configure the broker's advertised listeners and log retention time.
advertised.listeners=[1] listener.security.protocol.map=[2] log.retention.hours=[3]
The advertised listener must include protocol and address, the protocol map defines security, and retention is in hours (168 = 7 days).