flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nam-Luc Tran <namluc.t...@euranova.eu>
Subject Re: Iteration stats logging
Date Mon, 15 Jun 2015 14:32:03 GMT
Hi Ufuk,

The kind of things we'd like to log are: time spent in the iteration,
residual of the algorithm (convergence), current iteration.

Best regards,

Tran Nam-Luc

At Monday, 15/06/2015 on 16:15 Ufuk Celebi wrote:

Hey Tran Nam-Luc,

there is currently no way to do this.

The iteration sync tasks keeps track of iteration convergence/max
number of iterations and signals termination to the iteration head.
After this, the head flushes the produced result to the next task
(after the iteration) and the intermediate iteration tasks finish w/o
calling close again.

Because there is no "final" no-op iteration happening, the iteration
tasks don't know when the last iteration happened.

I'm not sure what the best way is to implement this at the moment.

What kind of stats are you recording?

– Ufuk

On 15 Jun 2015, at 15:53, Nam-Luc Tran  wrote:

> Hello Everyone,
> I would like to log certain stats during iterations in a bulk
> iterative job. The way I do this is store the things I want at each
> iteration and plan to flush everything to HDFS once all the
> are done. To do that I would need to know when the last iteration is
> invoked in order to flush the data. However, the close() method in
> RichMapFunction is executed at the end of each iteration.
> Is there anyway to know when I am in the last invocation? Or would
> have a better suggestion to achieve what I am trying to do?
> Thank you and best regards,
> Tran Nam-Luc 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message