Apache Kafka Topic Configuration File

Apache Kafka Topic Configuration

Generate operational properties for new Kafka topics.

Topic: data.stream.events | File: topic-config.properties

I. Generated Properties File Content

II. Command Line Usage

CREATE TOPIC:
kafka-topics.sh --create --topic data.stream.events --bootstrap-server localhost:9092 --partitions 3 --replication-factor 3

ALTER (Apply Config File):
kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name data.stream.events --file topic-config.properties

Topology

Log Retention & Cleanup

retention.ms
cleanup.policy

Metadata

Advanced Configuration (Optional)

max.message.bytes (Default: 1MB)
Scroll to Top