How to resolve RecordTooLargeException in Kafka Producer? -


i using flinkkafkaproducer08 send records kafka . sometime getting following exception, though record printing in error message small in size 0.02 mb .

java.lang.runtimeexception: not forward element next operator caused by: java.lang.runtimeexception: not forward element next operator caused by: java.lang.exception: failed send data kafka: message 1513657 bytes when serialized larger maximum request size have configured max.request.size configuration. caused by: org.apache.kafka.common.errors.recordtoolargeexception: message 1513657 bytes when serialized larger maximum request size have configured max.request.size configuration 

tried change max.request.size on producer , requires brokers changes , restart of broker .

there broker setting max message size:

message.max.bytes : 1,000,000 (default) 

so need restart brokers -- should not issue. kafka built in robust way regard broker bounces.

cf. http://kafka.apache.org/082/documentation.html#producerconfigs


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -