Broker configuration basics
📖 Scenario: You are setting up a Kafka broker for a small company that wants to manage message streams efficiently. You need to configure the broker with basic settings to get it running properly.
🎯 Goal: Configure a Kafka broker by creating a configuration dictionary, setting a key configuration value, applying the configuration, and then printing the final broker settings.
📋 What You'll Learn
Create a dictionary called
broker_config with initial settingsAdd a configuration key
log.retention.hours with value 168Apply the configuration by updating the dictionary with a new key
num.network.threads set to 3Print the final
broker_config dictionary💡 Why This Matters
🌍 Real World
Kafka brokers need configuration to control how they store logs, connect to Zookeeper, and manage network threads. This project shows how to set these configurations programmatically.
💼 Career
Understanding broker configuration is important for roles like DevOps engineers, backend developers, and data engineers who manage Kafka clusters.
Progress0 / 4 steps