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 F02A5200B91 for ; Thu, 29 Sep 2016 19:18:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EED4B160AE3; Thu, 29 Sep 2016 17:18:29 +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 10F67160AC1 for ; Thu, 29 Sep 2016 19:18:28 +0200 (CEST) Received: (qmail 34100 invoked by uid 500); 29 Sep 2016 17:18:28 -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 34090 invoked by uid 99); 29 Sep 2016 17:18:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 17:18:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A5D49180BD4 for ; Thu, 29 Sep 2016 17:18:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hEY5EjhvJ9Wa for ; Thu, 29 Sep 2016 17:18:26 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 361515FCA6 for ; Thu, 29 Sep 2016 17:18:26 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id g62so86332157lfe.3 for ; Thu, 29 Sep 2016 10:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0L+587PelImcsvzin4d3w2Mgak07yh0RY1yGMMHEqbc=; b=uDezgykTtc9Biz34nN97lFbHopu5ruVjDGYAyY4qVL8lLpVsQHaVTS7Qb8BW0wBz1U F651396KH+XCht1Rv5Ms3smSC1KdZWW/rbWkidmKUE72Da/tSHg0F5qwNpWAtkvEQvAU v6n1oNUd5bNsdcK/+loftP1xYf6l36EE/fBMjgV72f8i3ZxUfPAcHg1WLDS+oGLBHNDU 9mhTZ/97T5WmirEMVLStb6TLRd5OG4m72LsXmvKckR++H62aFa1RSAXNBEAE+CNMl668 xLtFfi+r2wYDrqtojshKsfniftI6BTFWae/MzBYEc7LLncehzx1Zhm9RcFJmn1xo+6Z7 KBjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0L+587PelImcsvzin4d3w2Mgak07yh0RY1yGMMHEqbc=; b=dbNoOpNg9CYSHUCa+Af5LgX1D7hK89z/NHhEI2sgukdYszSk+Eiu0u4yPGM58r/xp7 TykFdpnPl3phE28CHY4hBeL/7buqg2c57n/LTqLuIX9hRrAdLXlYFuB7qkHnJ0VMmC8m vy2xeAyspGNax22vZrP4CuJYhPCThQizq81ZPRnde47WlrXd9uj5pEuNY3M51Z1Jakw6 eK2+bVhntE/e8idCAawRkRh+tLmdRe/5AvrFVC/KVMdJ3xbQHhqfitBI+aNCCEq4+8oe fxVS9S/zN98dpeoXxRI24qJ5O0U8Fvdc5+6F9ubPiuCkHE3YwI6MzM2WxWrP6kofONtE wRpQ== X-Gm-Message-State: AA6/9RlicP62411zQwhdG/kWd6f7h2nfaKMQmBYFZHdsm6WUAGe31MvzTL6/7gkazkvN9ejMcntNB/ov1wyMsw== X-Received: by 10.25.22.199 with SMTP id 68mr1052214lfw.128.1475169504680; Thu, 29 Sep 2016 10:18:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.29.2 with HTTP; Thu, 29 Sep 2016 10:18:24 -0700 (PDT) In-Reply-To: References: From: Anchit Jatana Date: Thu, 29 Sep 2016 10:18:24 -0700 Message-ID: Subject: Re: How to interact with a running flink application? To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a113c9ea24f6b01053da8aa40 archived-at: Thu, 29 Sep 2016 17:18:30 -0000 --001a113c9ea24f6b01053da8aa40 Content-Type: text/plain; charset=UTF-8 Hi Ufuk, Thanks for your help, I'm working on using the suggested approach to address my use case. Regards, Anchit On Wed, Sep 28, 2016 at 12:48 AM, Ufuk Celebi wrote: > Hey Anchit, > > the usual recommendation for this is to use a CoMap/CoFlatMap > operator, where the second input are the lookup location changes. You > can then use this input to update the location. > > Search for CoMap/CoFlatMap here: > https://ci.apache.org/projects/flink/flink-docs-master/dev/datastream_api. > html#datastream-transformations > > Best, > > Ufuk > > On Wed, Sep 28, 2016 at 9:37 AM, Anchit Jatana > wrote: > > Hi All, > > > > Brief: I have a use case where I need to interact with a running flink > > application. > > > > Detail: > > > > My Flink application has a Kafka source, an operator processing on the > > content received from the Kafka stream(this operator is using a lookup > from > > an external source file to accomplish the processing of the Kafka > content). > > If the content of the file kept at the same source location changes, I > need > > to notify the operator to update its lookup content loaded in the memory > and > > continue its processing of Kafka content with the new loaded lookup > content > > without stopping the Flink application. > > > > Is there a way where I can "interact with the running Flink Application" > > through some event or something to notify the application to make some > > changes in its operation without stopping the application. > > > > Thank you! > > > > Regards, > > Anchit > --001a113c9ea24f6b01053da8aa40 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Ufuk,

Thanks for your help, I&= #39;m working on using the suggested approach to address my use case.
<= br>
Regards,
Anchit


On Wed, Sep 28, 2016 a= t 12:48 AM, Ufuk Celebi <uce@apache.org> wrote:
Hey Anchit,

the usual recommendation for this is to use a CoMap/CoFlatMap
operator, where the second input are the lookup location changes. You
can then use this input to update the location.

Search for CoMap/CoFlatMap here:
https://ci.apache.org/projects/flink/flink-docs-master/dev/d= atastream_api.html#datastream-transformations

Best,

Ufuk

On Wed, Sep 28, 2016 at 9:37 AM, Anchit Jatana
<development.anchit@gmai= l.com> wrote:
> Hi All,
>
> Brief: I have a use case where I need to interact with a running flink=
> application.
>
> Detail:
>
> My Flink application has a Kafka source, an operator processing on the=
> content received from the Kafka stream(this operator is using a lookup= from
> an external source file to accomplish the processing of the Kafka cont= ent).
> If the content of the file kept at the same source location changes, I= need
> to notify the operator to update its lookup content loaded in the memo= ry and
> continue its processing of Kafka content with the new loaded lookup co= ntent
> without stopping the Flink application.
>
> Is there a way where I can "interact with the running Flink Appli= cation"
> through some event or something to notify the application to make some=
> changes in its operation without stopping the application.
>
> Thank you!
>
> Regards,
> Anchit

--001a113c9ea24f6b01053da8aa40--