kafka.admin.AdminOperationException: replication factor: 3 larger than available brokers: 1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Verify on the createTopic command if you've set the right replication factor for the amount of brokers you have. Check as well if all your brokers are correctly setup and that they're alive when you create the topic.

,
Expert tip

If you're having problems using kafka in cluster, refer to this guide: https://goo.gl/tgWDjS

Solutions on the web

via GitHub by xiaomayilj
, 1 year ago
replication factor: 3 larger than available brokers: 1
via Stack Overflow by M. Situation
, 1 year ago
replication factor: 3 larger than available brokers: 1
via Stack Overflow by Renukaradhya
, 1 year ago
replication factor: 3 larger than available brokers: 1
via GitHub by kjetilhp
, 2 years ago
replication factor: 3 larger than available brokers: 1
via Stack Overflow by Count
, 1 year ago
replication factor: 1 larger than available brokers: 0
kafka.admin.AdminOperationException: replication factor: 3 larger than available brokers: 1
at kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:117)
at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:403)
at kafka.server.KafkaApis.kafka$server$KafkaApis$$createTopic(KafkaApis.scala:629)
at kafka.server.KafkaApis.kafka$server$KafkaApis$$createGroupMetadataTopic(KafkaApis.scala:651)
at kafka.server.KafkaApis$$anonfun$29.apply(KafkaApis.scala:668)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.immutable.Set$Set1.foreach(Set.scala:94)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractSet.scala$collection$SetLike$$super$map(Set.scala:47)
at scala.collection.SetLike$class.map(SetLike.scala:92)
at kafka.server.KafkaApis.getTopicMetadata(KafkaApis.scala:666)
at kafka.server.KafkaApis.handleTopicMetadataRequest(KafkaApis.scala:727)
at kafka.server.KafkaApis.handle(KafkaApis.scala:79)
at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:60)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.