Re: Preserving (best effort) messages order between operators

2019-10-31 Thread Huyen Levan
Hi Yun, My job graph is: (A: 1) -(rebalance)-> (B: 32) -(hash)-> (C: 32). A lists files, forwards to B as FileInputSlits. B parses those files and shuffles the data records to C as keyed streams. C is the slowest in the graph, A is the fastest. I relied on the slf4j/logback logs to derive that co

Re: How to stream intermediate data that is stored in external storage?

2019-10-31 Thread Huyen Levan
Hi Kant, So your problem statement is "ingest 2 streams into a data warehouse". The main component of the solution, from my view, is that SQL server. You can have a sink function to insert records in your two streams into two different tables (A and B), or upsert into one single table C. That upse

Re: How to export all not-null keyed ValueState

2019-05-10 Thread Averell Huyen Levan
imple cast. > > Best, Fabian > > Am Fr., 10. Mai 2019 um 13:08 Uhr schrieb Averell Huyen Levan < > lvhu...@gmail.com>: > >> Hi Fabian, >> >> Thanks for that. However, as I mentioned in my previous email, that >> implementation requires a lot of typecasti

Re: How to export all not-null keyed ValueState

2019-05-10 Thread Averell Huyen Levan
On Fri, May 10, 2019 at 8:52 PM Fabian Hueske wrote: > Hi Averell, > > Ah, sorry. I had assumed the toggle events where broadcasted anyway. > Since you had both streams keyed, your current solution looks fine to me. > > Best, > Fabian > > Am Fr., 10. Mai 2019 um 03:13

Re: How to export all not-null keyed ValueState

2019-05-09 Thread Averell Huyen Levan
Hi Fabian, Sorry, but I am still confused about your guide. If I union the Toggle stream with the StateReportTrigger stream, would that means I need to make my Toggles broadcasted states? Or there's some way to modify the keyed states from within the processBroadcastElement() method? I tried to i