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 24935200CD6 for ; Mon, 31 Jul 2017 15:09:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 22FDB165308; Mon, 31 Jul 2017 13:09:30 +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 404C8165307 for ; Mon, 31 Jul 2017 15:09:29 +0200 (CEST) Received: (qmail 91420 invoked by uid 500); 31 Jul 2017 13:09:28 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 91409 invoked by uid 99); 31 Jul 2017 13:09:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2017 13:09:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6745BC3F86 for ; Mon, 31 Jul 2017 13:09:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.693 X-Spam-Level: *** X-Spam-Status: No, score=3.693 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_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id TYgBUoa4Itts for ; Mon, 31 Jul 2017 13:09:19 +0000 (UTC) Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2BC0A5FD6F for ; Mon, 31 Jul 2017 13:09:19 +0000 (UTC) Received: by mail-ua0-f180.google.com with SMTP id f9so190621263uaf.4 for ; Mon, 31 Jul 2017 06:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+88CrLHTlksq/LqRSmlBCdfljw1USCjRcB+CtCNaoZI=; b=RwnUMXODlyRz3tORHREKJzfcPrFr9Ayfv0c90GD/qW+o1FKXj0/FulBdhk6/6NK7z5 5Ff1KfUewNPxe1Nl62FZ9wPt0iB8DjsBgVMfeVG9FvlvWxRL+5KX3BVfeEnBik64uNF8 nePw7IN1a2eVGtt7NAlFa1WrYNkt1+kBVA71Rf4i6JVdAPHyxqZaelkUNxqHgVaVLQPa TZWihiqRmnABh5dGzElDzMVkKpCNFbu474wOYd00Slfl1Z9310wm4PkF1CY0UZHQTIkd 51Nb6e0a0K2E2rNCcJFh53Ca3ikgi78mdQrt9e+j0o3vOXGuX1FoegFtg6RFXaE09wvx QxXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+88CrLHTlksq/LqRSmlBCdfljw1USCjRcB+CtCNaoZI=; b=tXD5uSuHMsWd7E75/AUSGcX4oyaBsMITCODy+leqxUBd0EaS7HWtQCvb0i2T1EYVOb N8UMhuBB0tTaELB5EzoZGBbKgsAo7qP80y/vqVcaQAmw8UCk9/AZ8vYhOBm42VcIbC38 i7x5NeiE97C31Q0y/O9DjeT9eiPqtLtbC1mxE9R/4VnLI5W9zdJwHw+0dWMjgpJCmmb+ gPPH940zIu1IGoUbd5GzgifCziSBxjzelTEMJNKEWpzGwclzXyWwXEELDoU0QjlQ6q63 zDmjkCi238RZ/UlHy+WYiKJ2vopDV/hU2fEfxHt+5KiXsxZ63ZssmuXrP0qIrtW8/g9o PdIA== X-Gm-Message-State: AIVw112xx6+0y+IKVoGRsQjncSbok4YW1COm7DeE0SwjD4Y/DxXDBxwZ tPLBO19PwP/IxuFri6c8pxMAQuYdtw== X-Received: by 10.176.71.213 with SMTP id w21mr11049974uac.14.1501506552784; Mon, 31 Jul 2017 06:09:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.161.142 with HTTP; Mon, 31 Jul 2017 06:08:42 -0700 (PDT) In-Reply-To: <1501500278159-14555.post@n4.nabble.com> References: <1501248861742-14514.post@n4.nabble.com> <1501487551698-14549.post@n4.nabble.com> <1501489185069-14551.post@n4.nabble.com> <1501500278159-14555.post@n4.nabble.com> From: Fabian Hueske Date: Mon, 31 Jul 2017 15:08:42 +0200 Message-ID: Subject: Re: Flink QueryableState with Sliding Window on RocksDB To: Biplob Biswas Cc: user Content-Type: multipart/alternative; boundary="f4030437a0a0b4ee1f05559cbc83" archived-at: Mon, 31 Jul 2017 13:09:30 -0000 --f4030437a0a0b4ee1f05559cbc83 Content-Type: text/plain; charset="UTF-8" I am not sure that this is impossible, but it is not the use case queryable state was designed for. I don't know the details of your application, but you could try to merge the updating and the querying operators into a single one. You could connect two streams with connect() and use a keyed CoProcessFunction. This will have the advantages that all state access are local. Cheers, Fabian 2017-07-31 13:24 GMT+02:00 Biplob Biswas : > Hi Fabian, > > I read about the process function and it seems a perfect fit for my > requirement. Although while reading more about queryable-state I found that > its not meant to do lookups within job (Your comment in the following > link). > > http://apache-flink-user-mailing-list-archive.2336050. > n4.nabble.com/Best-practices-to-maintain-reference-data- > for-Flink-Jobs-td13215.html#a13233 > > The thing is I wanted to maintain a local state store which is queryable > within the same job such that one operator creates and updates it and then > another operator queries the store based on a given key. > > I was hoping this to be possible but it seems not to be the case, can you > shed some light and if possible recommend some alternatives? > > Regards, > Biplob > > > > -- > View this message in context: http://apache-flink-user- > mailing-list-archive.2336050.n4.nabble.com/Flink- > QueryableState-with-Sliding-Window-on-RocksDB-tp14514p14555.html > Sent from the Apache Flink User Mailing List archive. mailing list archive > at Nabble.com. > --f4030437a0a0b4ee1f05559cbc83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am not sure that this is impossible, but = it is not the use case queryable state was designed for.
I don'= ;t know the details of your application, but you could try to merge the upd= ating and the querying operators into a single one.

You could = connect two streams with connect() and use a keyed CoProcessFunction. This = will have the advantages that all state access are local.

Chee= rs, Fabian

2017-07-31 13:24 GMT+02:00 Biplob Biswas <revolutionisme@gmail= .com>:
Hi Fabian,

I read about the process function and it seems a perfect fit for my
requirement. Although while reading more about queryable-state I found that=
its not meant to do lookups within job (Your comment in the following link)= .

http://apache-flink-user-m= ailing-list-archive.2336050.n4.nabble.com/Best-practices-to-maint= ain-reference-data-for-Flink-Jobs-td13215.html#a13233

The thing is I wanted to maintain a local state store which is queryable within the same job such that one operator creates and updates it and then<= br> another operator queries the store based on a given key.

I was hoping this to be possible but it seems not to be the case, can you shed some light and if possible recommend some alternatives?

Regards,
Biplob



--
View this message in context: http://= apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flin= k-QueryableState-with-Sliding-Window-on-RocksDB-tp14514p1455= 5.html
Sent from the Apache Flink User Mai= ling List archive. mailing list archive at Nabble.com.

--f4030437a0a0b4ee1f05559cbc83--