java.lang.IllegalArgumentException: requirement failed: broker.id must be equal or greater than -1 and not greater than reserved.broker.max.id

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

,

Delete the corrupted index files and on startup, Kafka server will rebuild it.

Solutions on the web

via GitHub by steverhoades
, 2 months ago
requirement failed: broker.id must be equal or greater than -1 and not greater than reserved.broker.max.id
via GitHub by jianchen2580
, 1 year ago
requirement failed: broker.id must be equal or greater than -1 and not greater than reserved.broker.max.id
via GitHub by kareblak
, 10 months ago
requirement failed: broker.id must be equal or greater than -1 and not greater than reserved.broker.max.id
via GitHub by jhpoelen
, 7 months ago
requirement failed
via GitHub by csghuser
, 1 year ago
requirement failed: broker.id must be equal or greater than -1 and not greater than reserved.broker.max.id
via GitHub by sjrd
, 2 months ago
requirement failed: id must be capitalized: scalaJSProjectBaseSettings
java.lang.IllegalArgumentException: requirement failed: broker.id must be equal or greater than -1 and not greater than reserved.broker.max.id
at scala.Predef$.require(Predef.scala:233)
at kafka.server.KafkaConfig.validateValues(KafkaConfig.scala:998)
at kafka.server.KafkaConfig.(KafkaConfig.scala:994)
at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:743)
at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:740)
at kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:28)
at kafka.Kafka$.main(Kafka.scala:58)
at kafka.Kafka.main(Kafka.scala)

Users with the same issue

16 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
13 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago

Write tip

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