0down vote favorite
I am using IntervalJoin function to join two streams within 10 minutes. As below:
labelStream and adLogStream are proto-buf class that are keyed by Long id.
Our two input-streams are huge. After running about 30minutes, the output to kafka go down slowly, like this:
When data output begins going down, I use jstack and pstack sevaral times to get these:
I have tried several ways:
1)Reduce the input amount to half. This works well.
2)Replace labelStream and adLogStream with simple Strings. This way, data amount will not change. This works well.}}
3)Use PredefinedOptions like SPINNING_DISK_OPTIMIZED and SPINNING_DISK_OPTIMIZED_HIGH_MEM. This still fails.}}
4)Use new versions of rocksdbjni. This still fails.}}
Can anyone give me some suggestions? Thank you very much.