Hi to all, I have a problem with Flink and Kafka queues. I have a Producer that puts some Rows into a data Sink
represented by a kafka queue and a Consumer that reads from this
sink and process Rows in buckets of N elements using
custom trigger function messageStream.keyBy(0)
The same happens also without using a custom trigger function, but with simple CountTrigger function: messageStream.keyBy(0) How is it possible? Is there any properties on Consumer to be set in order to process more data? Thanks, Simone. |
Hi Simone,
I suppose that you use messageStream.keyBy(…).window(…) right? .windowAll() is not applicable to keyedStreams. Some follow up questions are: In your logs, do you see any error messages? What does your RowToQuery() sink do? Can it be that it blocks and the back pressure makes all the pipeline stall? To check that, you can: 1) check the webui for backpressure metrics 2) replace your sink with a dummy one that just prints whatever it receives 3) or even put a flatmap after reading from Kafka (before the keyBy()) that prints the elements before sending them downstream, so that you know if the consumer keeps on reading. Let us know what is the result for the previous. Thanks, Kostas
|
Hi Kostas, thanks for your suggestion. Indeed, replacing my custom sink with a simpler one problem bring out that the cause of the problem was RowToQuery as you suggested. The sink was blocking the reads making the Kafka pipeline stall, due to a misconfiguration of an internal client that is calling an external service. Thanks for your help, On 16/05/2017 14:01, Kostas Kloudas
wrote:
Hi Simone, |
Hi Simone,
Glad I could help ;) Actually it would be great if you could also try out the upcoming (not yet released) 1.3 version and let us know if you find something that does not work as expected. We are currently in the phase of testing it, as you may have noticed, and every contribution to that front is more than welcomed. Cheers, Kostas
|
Hi Kostas, As suggested I switched to version 1.3-SNAPSHOT and the project
run without any problem. I will keep you informed if any other
issue occurs. Thanks again for the help. Cheers,
Simone.
On 16/05/2017 16:36, Kostas Kloudas
wrote:
Hi Simone, |
Free forum by Nabble | Edit this page |