RecordTooLargeException on large messages in Kafka?
I am using HDP-2.6.5.0 with kafka 1.0.0; I have to process large (16M) messages so i set
message.max.bytes=18874368replica.fetch.max.bytes = 18874368socket.request.max.bytes =18874368
From Ambary/Kafka configs screen and restarted Kafka services
When I try to send 16M messages:
/usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list <broker-ip>:6667 --topic test < ./big.txt
I still have the same error:
ERROR Error when sending message to topic test with key: null, value: 16777239 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.RecordTooLargeException: The message is 16777327 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.
I tried to set max.request.size in producer.properties file but still have the same error. What am I missing?
Thank you,

