Ethanlm opened a new pull request #11432: [FLINK-16517][Examples] Add an embedded input to enable a long-running WordCount example URL: https://github.com/apache/flink/pull/11432 ## What is the purpose of the change This PR modifies the current WordCount example to have a SourceFunction that randomly generates input data based on a set of sentences, so the WordCount job can run forever. The generation interval is configurable. This will be the easiest way to start a long running flink job and can be useful for new users to start using flink quickly, or for developers to test flink easily. ## Brief change log - *Added a new SourceFunction `RandomSentenceSource` that generates random data continuously until cancellation* - *Modified the WordCount example to use the `RandomSentenceSource` as the input optionally* ## Verifying this change This change can be verified as follows: - *Manually verified the change by running a 1 node cluster with 1 JobManagers and 1 TaskManagers, submitted the new WordCount jobs with `--random` option with different intervals and verified the jobs worked correctly.* ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no - The serializers: no - The runtime per-record code paths (performance sensitive): no - Anything that affects deployment or recovery: no - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? yes - If yes, how is the feature documented? JavaDocs
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services