Complete the code to start a Kafka broker in standalone mode.
bin/kafka-server-start.sh config/server[1].propertiesIn standalone mode, Kafka uses server1.properties to start a single broker.
Complete the code to start multiple Kafka brokers in distributed mode.
bin/kafka-server-start.sh config/server[1].propertiesIn distributed mode, you start multiple brokers with different numbered config files like server2.properties.
Fix the error in the command to start Kafka in distributed mode.
bin/kafka-server-start.sh config/server[1].propertiesTo start the third broker in distributed mode, use server3.properties.
Fill both blanks to configure Kafka for distributed mode with correct broker ID and port.
broker.id=[1] port=[2]
In distributed mode, each broker has a unique broker.id and port. Here, broker 2 uses port 9093.
Fill all three blanks to create a Kafka producer command for standalone and distributed modes.
bin/kafka-console-producer.sh --broker-list localhost:[1] --topic [2] --producer-property acks=[3]
For distributed mode, use port 9093, topic 'test-topic', and set acks to 'all' for full acknowledgment.