kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neha Narkhede <neha.narkh...@gmail.com>
Subject Re: are topics and partitions dynamic?
Date Sun, 27 Jan 2013 20:36:39 GMT
In Kafka 0.7, topics and partitions are dynamic in the sense that a
partition is created when the broker receives the first message for that
In Kafka 0.8, there are 2 ways of creating a new topic -
1. Turn on auto.create.topics.enable option on the broker. When the broker
receives the first message for a new topic, it creates that topic with
num.partitions and default.replication.factor.
2. Use the admin command bin/kafka-create-topic.sh


On Sun, Jan 27, 2013 at 12:23 PM, S Ahmed <sahmed1020@gmail.com> wrote:

> I'm looking at the kafka server.properties that is in /config folder and
> didn't find any reference to topics or partitions.
> Are topics and optionally partitions dynamic in nature or do they have to
> be defined before starting the broker? (and consequently producers can't
> send to a topic and partition that isn't predefined).

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message