Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C52B17B2B for ; Mon, 15 Jun 2015 14:32:40 +0000 (UTC) Received: (qmail 57437 invoked by uid 500); 15 Jun 2015 14:32:40 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 57381 invoked by uid 500); 15 Jun 2015 14:32:40 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 57370 invoked by uid 99); 15 Jun 2015 14:32:39 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 14:32:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5B279C09BE for ; Mon, 15 Jun 2015 14:32:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.99 X-Spam-Level: ** X-Spam-Status: No, score=2.99 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id JED_4McGVsWl for ; Mon, 15 Jun 2015 14:32:33 +0000 (UTC) Received: from ns361388.ovh.net (prod0.euranova.eu [91.121.168.51]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 11C682162C for ; Mon, 15 Jun 2015 14:32:32 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by ns361388.ovh.net (Postfix) with ESMTP id E54F74C827B for ; Mon, 15 Jun 2015 16:32:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ns361388.ovh.net Received: from ns361388.ovh.net ([127.0.0.1]) by localhost (ns361388.ovh.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w11o0CVhKzhn for ; Mon, 15 Jun 2015 16:32:03 +0200 (CEST) Received: from euranova.eu (localhost.localdomain [127.0.0.1]) by ns361388.ovh.net (Postfix) with ESMTP id 2A2CC4C8072 for ; Mon, 15 Jun 2015 16:32:03 +0200 (CEST) Message-ID: <1434378723.557ee1e324324@euranova.eu> Date: Mon, 15 Jun 2015 16:32:03 +0200 Subject: Re: Iteration stats logging From: Nam-Luc Tran To: dev@flink.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_=_swift_v4_1434378723557ee1e32508f_=_" X-Remote-Addr: [217.64.245.82] X-Priority: 3 (Normal) X-MimeOLE: Produced by Group-Office 4.1.36 X-Mailer: Group-Office 4.1.36 --_=_swift_v4_1434378723557ee1e32508f_=_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ufuk, The kind of things we'd like to log are: time spent in= the iteration, residual of the algorithm (convergence), current iter= ation. Best regards, Tran Nam-Luc =C2=A0= At Monday, 15/06/2015 on 16:15 Ufuk Celebi wrote: H= ey Tran Nam-Luc, there is currently no way to do th= is. The iteration sync tasks keeps track of iteration converg= ence/max number of iterations and signals termination to the iterati= on head. After this, the head flushes the produced result to the nex= t task (after the iteration) and the intermediate iteration tasks fi= nish w/o calling close again. Because there is no "final" n= o-op iteration happening, the iteration tasks don't know when the las= t iteration happened. I'm not sure what the best way is to impl= ement this at the moment. What kind of stats are you recording?= =E2=80=93 Ufuk On 15 Jun 2015, at 15:53, Nam-Luc = Tran wrote: > Hello Everyone, >=20 > I would like to = log certain stats during iterations in a bulk > iterative job. The w= ay I do this is store the things I want at each > iteration and plan = to flush everything to HDFS once all the iterations > are done. T= o do that I would need to know when the last iteration is > invoked = in order to flush the data. However, the close() method in the >= RichMapFunction is executed at the end of each iteration. >=20 > = Is there anyway to know when I am in the last invocation? Or would y= ou > have a better suggestion to achieve what I am trying to do?= >=20 > Thank you and best regards, >=20 > Tran Nam-Lu= c=20 >=20 > --_=_swift_v4_1434378723557ee1e32508f_=_--