Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8DDBF200C49 for ; Fri, 17 Mar 2017 11:07:39 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8C5CB160B80; Fri, 17 Mar 2017 10:07:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D743D160B6D for ; Fri, 17 Mar 2017 11:07:38 +0100 (CET) Received: (qmail 8733 invoked by uid 500); 17 Mar 2017 10:07:37 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 8723 invoked by uid 99); 17 Mar 2017 10:07:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2017 10:07:37 +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 824B5C1362 for ; Fri, 17 Mar 2017 10:07:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id BtqZOHTAzMQo for ; Fri, 17 Mar 2017 10:07:34 +0000 (UTC) Received: from sender-of-o51.zoho.com (sender-of-o51.zoho.com [135.84.80.216]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id ED0BF5F613 for ; Fri, 17 Mar 2017 10:07:33 +0000 (UTC) Received: from [192.168.10.143] (109.73.146.236 [109.73.146.236]) by mx.zohomail.com with SMTPS id 1489745241807753.2725099033927; Fri, 17 Mar 2017 03:07:21 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Telling if a job has caught up with Kafka From: =?utf-8?Q?Florian_K=C3=B6nig?= In-Reply-To: Date: Fri, 17 Mar 2017 11:07:19 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <0104ACD3-1407-4A59-8D65-67CA7326F1C6@micardo.com> References: To: user@flink.apache.org X-Mailer: Apple Mail (2.3124) archived-at: Fri, 17 Mar 2017 10:07:39 -0000 Hi, thank you Gyula for posting that question. I=E2=80=99d also be = interested in how this could be done. You mentioned the dependency on the commit frequency. I=E2=80=99m using = https://github.com/quantifind/KafkaOffsetMonitor. With the 08 Kafka = consumer a job's offsets as shown in the diagrams updated a lot more = regularly than the checkpointing interval. With the 10 consumer a commit = is only made after a successful checkpoint (or so it seems). Why is that so? The checkpoint contains the Kafka offset and would be = able to start reading wherever it left off, regardless of any offset = stored in Kafka or Zookeeper. Why is the offset not committed regularly, = independently from the checkpointing? Or did I misconfigure anything? Thanks Florian > Am 17.03.2017 um 10:26 schrieb Gyula F=C3=B3ra : >=20 > Hi All, >=20 > I am wondering if anyone has some nice suggestions on what would be = the simplest/best way of telling if a job is caught up with the Kafka = input. > An alternative question would be how to tell if a job is caught up to = another job reading from the same topic. >=20 > The first thing that comes to my mind is looking at the offsets Flink = commits to Kafka. However this will only work if every job uses a = different group id and even then it is not very reliable depending on = the commit frequency. >=20 > The use case I am trying to solve is fault tolerant update of a job, = by taking a savepoint for job1 starting job2 from the savepoint, waiting = until it catches up and then killing job1. >=20 > Thanks for your input! > Gyula