kafka单条消息太大引起的线上故障

问题现象

1.收到日志异常报警,一个Flink任务写入kafka消息出现了异常,异常消息如下

org.apache.flink.streaming.connectors.kafka.FlinkKafkaException: Failed to send data to Kafka: The message is 1602187 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.
  at org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer.checkErroneous(FlinkKafkaProducer.java:1218)
  at org.apache.flink.streaming.connectors

你可能感兴趣的:(线上故障篇,java)