Atheer Abdullatif
Atheer Abdullatif

Reputation: 272

unable to send large files to Kafka broker | Error message: The request included a message larger than the max message size the server will accept

I am unable to send large file to the broker, I have edited the configuration files and inside my client program but it didn't work.

Upvotes: 3

Views: 2325

Answers (2)

Michael Heil
Michael Heil

Reputation: 18475

Moving comment to answer...

The message.max.bytes is a cluster-wide setting and you need to make sure that the corresponding max.message.bytes configuration is also set at topic-level. As the topic-level configuration defaults to 1048588 you are seeing this error.

Upvotes: 4

Atheer Abdullatif
Atheer Abdullatif

Reputation: 272

kafka-topics.bat --create --zookeeper 127.0.0.1:2181 --replication-factor 1 --partitions 1 --topic test --config max.message.bytes=9000000

Upvotes: 2

Related Questions