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 27CC0200B5B for ; Fri, 5 Aug 2016 14:36:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 26517160A8E; Fri, 5 Aug 2016 12:36:34 +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 6EAB7160A6D for ; Fri, 5 Aug 2016 14:36:33 +0200 (CEST) Received: (qmail 27610 invoked by uid 500); 5 Aug 2016 12:36:32 -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 27600 invoked by uid 99); 5 Aug 2016 12:36:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 12:36:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0D7B11A0340 for ; Fri, 5 Aug 2016 12:36:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.446 X-Spam-Level: X-Spam-Status: No, score=-4.446 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id H1u6hzUyThd5 for ; Fri, 5 Aug 2016 12:36:31 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 41A065F4E3 for ; Fri, 5 Aug 2016 12:36:30 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 05 Aug 2016 05:36:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,474,1464678000"; d="scan'208,217";a="1009005013" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 05 Aug 2016 05:36:04 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 5 Aug 2016 05:36:03 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 5 Aug 2016 05:36:03 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.147]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.181]) with mapi id 14.03.0248.002; Fri, 5 Aug 2016 20:36:02 +0800 From: "Mao, Wei" To: "user@flink.apache.org" Subject: How to get latest offsets with FlinkKafkaConsumer Thread-Topic: How to get latest offsets with FlinkKafkaConsumer Thread-Index: AdHvFd8C7nwMGl0bTeuZy/n3L8ZXwA== Date: Fri, 5 Aug 2016 12:36:01 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWNlZmRjZDUtOGE3ZS00YmFmLWEwZmMtMTMzZTM3MTRmNWMzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjdWS2lOeU9saGt1M0FKSFpjS0Nsblp2QmdMc3RVcEJZRUNNUFZRK0lzZ0E9In0= x-originating-ip: [10.239.127.40] Content-Type: multipart/alternative; boundary="_000_D7747EAE1816444ABBB5EFA0054D5ACF23005469shsmsx102ccrcor_" MIME-Version: 1.0 archived-at: Fri, 05 Aug 2016 12:36:34 -0000 --_000_D7747EAE1816444ABBB5EFA0054D5ACF23005469shsmsx102ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am doing some performance tests with Flink (1.0.3 )+ Kafka (0.8.2.2). And= I noticed that when I restarted my Flink application, it reads records sta= rting from the latest offset that I consumed last time, but not the latest = offsets of that topic in Kafka. So Is there any way to make it read from last offsets of broker/MyTopic ins= tead of consumer/MyTopic in Flink? Thanks, William --_000_D7747EAE1816444ABBB5EFA0054D5ACF23005469shsmsx102ccrcor_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am doing some performance tests with Flink (1.0.3 )+ Kafka (0.8.2.2). And I noticed = that when I restarted my Flink application, it reads records starting from = the latest offset that I consumed last time, but not the latest offsets of that topic in Kafka.  

 

So Is there any way to make it read from last offset= s of broker/MyTopic instead of consume= r/MyTopic in Flink?  <= /p>

 

Thanks,

William

 

--_000_D7747EAE1816444ABBB5EFA0054D5ACF23005469shsmsx102ccrcor_--