...
Command line tools and arguments
Proposed Changes
You can keep using properties as you do today. If you decide to use the global configuration feature then only a few properties will be able to be overridden e.g. host and port. All other properties will either be default or set in the central meta store for retrieving the settings.
These changes use and are based on KAFKA-1845 (KafkaConfig should use ConfigDef).
The new proposed workflow is the following:
- The broker is being started (entry point - Kafka.scala class)
- The local configuration file server.properties is parsed
- Global configuration settings (if present) are picked up from zookeeper
- Global configuration take precedence over local except for predefined list (currently - brokerId, host, port, advertisedHost, advertisedPort)
- KafkaServer is started with "merged" configuration
The global configuration is stored in the same format as topic-level configuration:
{
"version
Compatibility, Deprecation, and Migration Plan
...