Reputation: 26548
I'm looking for a Flink example job of long-running streaming processing for test purposes. I checked the streaming/WordCount included in the Flink project, but seems it is not long-running, after processing the input file, it exits.
Do I need to write one by myself? What is the simplest way to get an endless stream input?
Upvotes: 2
Views: 1089
Reputation: 43707
The WordCount example exits because its source is finite. Once it has fully processed its input, it exits.
The Flink Operations Playground is a nice example of a streaming job that runs forever.
Upvotes: 3
Reputation: 2921
Per definition every streaming job runs "forever" as long as you don't define any halt criterias or cancel the job manually. I guess you are asking for some job which consumes from some kind of infinite source. The most simplest job I could find was the twitter example which is included at the flink-project itself:
With some tweaking you could also use the socket-example (there you have some more control of the source):
Hope I got your question right and this helps.
Upvotes: 1