Ambiguity in the number of partition in server.properties and in topic creation --partition parameter in apache kafka -


in kafka have created topic ./kafka-topics.sh command. command like

./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 8 --topic test 

with 8 partitions topic test, there server.properties configuration in kafka broker, has num.partitionsparameter default 1.

now specific question not create ambiguity in partition topic test. consider partition mentioned @ time of topic creation or num.partition in server.properties

kafka can configured create topics on demand. means if try send message topic not exists, topic created automatically number of partitions specified num.partitions property in server.properties. if going create topic using

./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 8 --topic test 

the topic created number of partitions specified --partitions, in case 8, , property num.partitions ignored.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -