|
Hello,
Thank's in advance !
Anissa
Hi Anissa,
I assume you’re running a batch job, since there is no “end of job” with streaming.
If so, then calling .mapPartition(new YourMapPartitionFunction) is one option that I’ve used for cases like this.
— Ken
Hello, I created a process for an anomaly
detection with a flatMap. I need to know the end of each job at
the level of the flatMap to be able to flush a buffer in the output collector. I saw that it is possible to get status of job by using ExecutionEnvironment, but i don't know how i can implement it. Is it possible to recover the end of each job in the flatMap of any processing source with last iteration of job or to have in advance the size of the partition that each job must
deal ? Thank's in advance ! Anissa
--------------------------
Pensez à la planète, imprimer ce papier que si nécessaire
|