Hi,
I have run a program to monitor the sum of the delay in every minutes of a stream,this is my code: .map(new RichMapFunction[String,(Long,Int)] { but there is a problem,when the data is not delaying,the key of 1,2,3,4,5 have so much data that the backPressure is always 1,has any way to avoid this condition? please give me some advice!thank you so much. |
Hi, What you could do to improve processing of a skewed data is to introduce an artificial preaggregation. You could add some artificial uniformly distributed secondary key and calculate your aggregates on (original key, secondary uniform key) and then do the final aggregation in an additional step. Best, Dawid On 06/05/2021 09:24, jester jim wrote:
OpenPGP_signature (855 bytes) Download Attachment |
Free forum by Nabble | Edit this page |