I am trying to create a new Kafka topic from the command line
$ kafka-topics --create --zookeeper localhost:2181 --topic def-test I get the error
Missing required argument "[partitions]" From the docs, I see that setting num.partitions, should have done the trick. I have the following in my server.properties
# The default number of log partitions per topic. More partitions allow greater # parallelism for consumption, but this will also result in more files across # the brokers. num.partitions=2 But it is not taking effect. Also, I wonder how kafka-topics command which connects only to zookeeper and does not take any arguments to server.properties is going to be able to pick the correct value. How can I create topics without having to specify the number of partitions (by falling back to a default value specified elsewhere)?

