Kafka + Spark Streaming: constant delay of 1 second

*爱你&永不变心* 提交于 2019-12-04 21:27:10

I have just updated the JIRA you opened with the reason why you always see the 1000 ms delay.

https://issues.apache.org/jira/browse/KAFKA-5426

I report here the reason ...

the linger.ms parameter is set using the --timeout option on the command line which if not specified is 1000 ms. At same time the batch.size parameter is set using the --max-partition-memory-bytes option on the command line which if not specified is 16384. It means that even if you specify linger.ms and batch.size using --producer-property or --producer.config, they will be always overwritten by the above "specific" options.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!