CCAAK · Question #22
While managing a Kafka cluster, you notice that a producer fails to send messages to a Kafka topic. The logs show an error: 'org.apache.kafka.common.errors.RecordTooLargeException'. You need to…
The correct answer is C. Increase the 'max.message.bytes' configuration for the Kafka topic. The exception occurs when the message size exceeds the broker or topic limit. Increasing the topic's maximum allowed message size ensures the broker can accept larger messages, resolving the error and allowing the producer to send them successfully.
Question
While managing a Kafka cluster, you notice that a producer fails to send messages to a Kafka topic. The logs show an error: 'org.apache.kafka.common.errors.RecordTooLargeException'. You need to identify the possible reasons for the error and resolve this exception so the producer can send messages successfully. Which action should you take?
Options
- AIncrease the 'max.request.size' configuration in the producer properties file.
- BDecrease 'retention.ms' configuration for the Kafka topic.
- CIncrease the 'max.message.bytes' configuration for the Kafka topic.
- DDecrease 'batch.size' configuration in the producer properties file.
How the community answered
(23 responses)- A13% (3)
- B4% (1)
- C78% (18)
- D4% (1)
Explanation
The exception occurs when the message size exceeds the broker or topic limit. Increasing the topic's maximum allowed message size ensures the broker can accept larger messages, resolving the error and allowing the producer to send them successfully.
Topics
Community Discussion
No community discussion yet for this question.