flink 写kafka,报错,作业挂掉
  • Caused by: java.lang.Exception: Failed to send data to Kafka: Expiring 89 record(s) for system_online_learning_test-1: 30001 ms has passed since last append
Kafka Version : 0.10.2.1,Kafka Producer error Expiring 10 record(s) for TOPIC:XXXXXX: 6686 ms has passed since batch creation plus linger time org.apache.kafka.common.errors.TimeoutException: Expiring 10 record(s) for TOPIC:XXXXXX: 6686 ms has passed since batch creation plus linger timeAny clue will be appreciated ..
You get this error when the producer can't send data to the broker that it thinks is responsible for the messages according to the metadata that it has. Did the kafka broker die or your producer have connection issues at that time? – Sönke Liebau Oct 15 '17 at 8:13
1
I am also getting this error intermittently throughout the day. Searching for an answer – Shades88 Nov 8 '17 at 9:34
Its stopped occurring when I change my kafka producer "max.request.size": "4713360", "acks": "all", "timeout.ms":"18000", "batch.size": "100000", -- this is size in bytes .. "linger.ms":"100", "retries": "5", "min.insync.replicas":"2", "buffer.memory ":"66554432", "request.timeout.ms":"90000","block.on.buffer.full","true" basically linger.ms and batch.size and block.on.buffer.full plays major role here – Raju Nov 29 '17 at 23:30 
This exception is occuring because you are queueing records at a much faster rate than they can be sent.When you call the send method, the ProducerRecord will be stored in an internal buffer for sending to the broker. The method returns immediately once the ProducerRecord has been buffered, regardless of whether it has been sent.Records are grouped into batches for sending to the broker, to reduce the transport overheard per message and increase throughput.Once a record is added into a batch, there is a time limit for sending that batch to ensure that it has been sent within a specified duration. This is controlled by the Producer configuration parameter, request.timeout.ms, which defaults to 30 seconds.If the batch has been queued longer than the timeout limit, the exception will be thrown. Records in that batch will be removed from the send queue.Producer configs block.on.buffer.full, metadata.fetch.timeout.ms and timeout.ms have been removed. They were initially deprecated in Kafka 0.9.0.0.Therefore give a try for increasing request.timeout.msStill, if you have any problem related to throughput, you can also refer following blog
  • request.timeout.ms 默认30s,调整成120s,写入速度变慢,但异常没有复现。

转载于:https://www.cnblogs.com/suanec/p/11116807.html

Caused by java.lang.Exception Failed to send data to Kafka Expiring相关推荐

  1. 【Flink】Flink 写入 kafka 报错 Failed to send data to Kafka: Expiring 4 record(s) for 20001 ms has passed

    文章目录 1.场景1 1.1 概述 1.2 百度 1.3 同样问题 2.场景再现 本文为博主九师兄(QQ:541711153 欢迎来探讨技术)原创文章,未经允许博主不允许转载. 1.场景1 1.1 概 ...

  2. 【Kafka】Failed to send data to Kafka: Expiring 30 record(s) for xxx 732453 ms has passed since last a

    文章目录 1.美图 2.背景 2.尝试方案1 3.尝试解决2 本文为博主九师兄(QQ:541711153 欢迎来探讨技术)原创文章,未经允许博主不允许转载. 1.美图 问题与 [Flink]Flink ...

  3. 【Kafka】Failed to send data to Kafka: Failed to update metadata after 60000 ms

    文章目录 1.美图 2.背景 1.美图 2.背景 java.lang.Exception: Failed to send data to Kafka: Failed to update metadat ...

  4. 【Kafka】Failed to send data to Kafka: Failed to allocate memory within the configured max blocking

    1.美图 2.背景 报错 java.lang.Exception: Failed to send data to Kafka: Failed to allocate memory within the ...

  5. 【Flink】flink Kafka报错 : Failed to send data to Kafka: This server is not the leader for that topic-pa

    1.背景 出现这个问题的背景请参考:[Kafka]Failed to send data to Kafka: Expiring 30 record(s) for xxx 732453 ms has p ...

  6. Caused by: java.lang.IllegalStateException: Failed to introspect Class

    Spring-Data-ElasticSearch整合spring boot问题 Caused by: java.lang.IllegalStateException: Failed to intro ...

  7. Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.mchange.v2.c3p0.ComboPoo

    主要问题:Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.mchange.v2.c3p0.Com ...

  8. Android之Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains

    1 问题 用takePhoto去照相的时候特么的一打开就报这个错误 2020-04-09 21:33:49.124 19016-19016/com.appsinnova.android.keepsha ...

  9. 【Kafka】Flink kafka 报错 Failed to send data to Kafka: Failed to allocate memory within the config

    1.背景 [2020-09-05 14:57:51] [INFO] [org.apache.flink

最新文章

  1. 学术分享丨面向机器人的学习算法简述
  2. name选择器_这33个超级好用的CSS选择器,你可能见都没见过
  3. python【Matlibplot绘图库】画图种类(真の能看懂~!)
  4. DL之CNN:自定义SimpleConvNet【3层,im2col优化】利用mnist数据集实现手写数字识别多分类训练来评估模型
  5. Linux shell编程:状态变量
  6. urllib2.urlopen超时问题
  7. JAVA可阻塞队列-ArrayBlockingQueue
  8. Flutter StreamController 异步通信、Stream 流异步通信
  9. c语言编程请输入密码,想程序高手求助--用C语言来编辑一个输入密码的程序
  10. easyui弹出层在最顶层显示跳出iframe框架通用javascript代码
  11. WinSCP 连接 Ubuntu 拒绝的问题
  12. 小程序模板消息报错41028。解决方法
  13. OpenCV-图像处理(21、霍夫圆变换)
  14. 音乐剪辑_android版,全能视频音乐剪辑大师
  15. [渝粤教育] 九江学院 材料分析及测试技术 参考 资料
  16. 凯撒移位密码python_凯撒密码python拓展程序
  17. 读薄《高性能MySql》(三)索引优化
  18. 花嫁之容氏浅浅最后怎么样了_花嫁之容氏浅浅小说
  19. Linux进程控制(一)
  20. TP5 根据是否是手机端跳转到对应模板

热门文章

  1. 用文心大模型生成剪纸风格的城市插画
  2. Rocketmq简介及部署、原理和使用介绍
  3. Between Us 2 进化的史诗
  4. 79元限抢Jeep专柜「冰丝速干裤」!穿上它让你“胯下生风”,比裸奔还爽!
  5. 怎么制作书单视频?一款好用的制作软件教程
  6. JS拖拽效果,代码精干,通俗易懂!
  7. 企业微信回调实现(java)
  8. 简化服装ERP系统的规范流程和规范功用
  9. Chris Hadfield現身《ABS 2020》,各方菁英和THORBOT 雷神量化機器人一同進行深入探討
  10. java joda 获取utc时间_Java获取时间与系统时间相差8小时终极解决方案