Re: Read once input data?
Posted by
Fabian Hueske-2 on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Read-once-input-data-tp4932p4933.html
Hi,
it looks like you are executing two distinct Flink jobs.
DataSet.count() triggers the execution of a new job. If you have an execute() call in your program, this will lead to two Flink jobs being executed.
It is not possible to share state among these jobs.
Maybe you should add a custom count implementation (using a ReduceFunction) which is executed in the same program as the other ReduceFunction.
Best, Fabian