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 29BC7200D3D for ; Mon, 13 Nov 2017 10:19:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 28001160BF3; Mon, 13 Nov 2017 09:19:08 +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 2141B160BE4 for ; Mon, 13 Nov 2017 10:19:06 +0100 (CET) Received: (qmail 83776 invoked by uid 500); 13 Nov 2017 09:19:01 -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 83766 invoked by uid 99); 13 Nov 2017 09:19:01 -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, 13 Nov 2017 09:19:01 +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 52369C370F for ; Mon, 13 Nov 2017 09:19:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.311 X-Spam-Level: X-Spam-Status: No, score=-0.311 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.onmicrosoft.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MyCma_8NOpuT for ; Mon, 13 Nov 2017 09:18:55 +0000 (UTC) Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 27B755FC64 for ; Mon, 13 Nov 2017 09:18:55 +0000 (UTC) X-AuditID: c1b4fb30-a25ff70000002554-37-5a096376d46c Received: from ESESSHC010.ericsson.se (Unknown_Domain [153.88.183.48]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id 33.CA.09556.673690A5; Mon, 13 Nov 2017 10:18:46 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (153.88.183.145) by oa.msg.ericsson.com (153.88.183.48) with Microsoft SMTP Server (TLS) id 14.3.352.0; Mon, 13 Nov 2017 10:18:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.onmicrosoft.com; s=selector1-ericsson-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+eS6ClCRSCqgirxK7bf212L3MF69quEdUFnq2ECTk/8=; b=Igl+TtDetICMUv7X5p80XHPyiOO9ILMii/pX+yMafHsvRb1FxYF1P2JBZ6b3uk3H4CZeN1l3JBLkHlk5MrM1SKnoFLZEHYt2BCMz7gTHpCyUj/rLU3lcqc/tsVrwx2CEhnuu+6CGYCg1DJLI+gtRL78eNrjXhtWs3aal9G9RfMw= Received: from VI1PR07MB3357.eurprd07.prod.outlook.com (10.175.244.15) by VI1PR07MB3360.eurprd07.prod.outlook.com (10.175.244.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.239.4; Mon, 13 Nov 2017 09:18:45 +0000 Received: from VI1PR07MB3357.eurprd07.prod.outlook.com ([fe80::10a7:73a3:f2ac:a580]) by VI1PR07MB3357.eurprd07.prod.outlook.com ([fe80::10a7:73a3:f2ac:a580%13]) with mapi id 15.20.0239.004; Mon, 13 Nov 2017 09:18:45 +0000 From: Gwenhael Pasquiers To: Derek VerLee , "user@flink.apache.org" Subject: RE: Streaming : a way to "key by partition id" without redispatching data Thread-Topic: Streaming : a way to "key by partition id" without redispatching data Thread-Index: AdNZeydoYjgKYFP9TAqEWvyUlh0E5AAlTXwwAAkV8QAABBVFEAAAaXCAAIY0gAA= Date: Mon, 13 Nov 2017 09:18:45 +0000 Message-ID: References: <178e661f-1a63-bb69-8378-74612241b20e@gmail.com> In-Reply-To: <178e661f-1a63-bb69-8378-74612241b20e@gmail.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=gwenhael.pasquiers@ericsson.com; x-originating-ip: [192.176.1.95] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR07MB3360;6:XAaL6helyQjVsy3w/4wXfPWnPHjruK4KiaxG71RJh6tcWAXzbs0tiGcCZZV4T5or44kp7gRF9lOSkotD5kTrRhRqkdgA+XCpm/gIuDHBStF0nWyIrRkXsMJ4RABTNdoq3CKCH6Yc3dWKp/NUxuQ8eBgtMw6k5Jl4qI7idUedduxbGq4DB1gz6lex9BP6daEsZxQUjIDGQCxtIzvacyOPYaCpqGi3LMKKxaN3rwgzN9lCbRNH2Ty2Nm2KzTYANlO9GZW23+lh6iqU+n6VP2AGxsFLCQz8vAOh7COAHd8bx0FqBcBAW8kWKwm10MP+DmBsnRuy+DxLC12sDf0VLgabjB4QjR+UGf+Hv0dsdCdBkLU=;5:TimlZUwtClhOLomRpODpIcnnsJROm/9QuIyXMngW67lEdDQerwGkKhvKKEi/BKGePFgsUb4cPrsXFto8+kG+6qGsxwI69CpNWvBesRxfv8R4wz8KwmQFaziHkVaQJmQyo4Jc3eaqwNX2sjEC4hFnmgLpSmLY3v7gI3dbfEeKDJE=;24:/sKKe9FPs0FtAwlOQdsg1YVXxnA+vAhI2RvHPLCxm5k3tQZdMnKtKz/Qh93OHrI6jD5ETTpDTBtPI90/GKRG9dAvYzZgzoRapGt7G2jatyE=;7:zphc8q6AOhgJbNVDVflfZS8cb592uQeMs6BSHnr4Ija7CzBvS22LywMNqDX6xH8mDv+d+8NNiLN21ILi/uHw/WUrIXGMCS7hQv9vunMXW3ksfV/nhNveQWWej4+mb4iMonpRCTfUTgi0uEkNJYsnEZxFj5A9CgAAP31dKbYayZnm07zepX3BcLYl1utB54dDoguwnkYACwYyZPLYiFqIuoha+AjPs/Ae1nGOvMfg3aWCwoTA/b3vTu7TWNKXk7dH x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: a246528b-d8cf-4ecb-0b5d-08d52a778a43 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258);SRVR:VI1PR07MB3360; x-ms-traffictypediagnostic: VI1PR07MB3360: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(3231022)(10201501046)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR07MB3360;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR07MB3360; x-forefront-prvs: 0490BBA1F0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(376002)(346002)(39860400002)(189002)(199003)(189998001)(86362001)(99286004)(8676002)(81166006)(101416001)(5250100002)(14454004)(55016002)(50986999)(25786009)(76176999)(478600001)(81156014)(106356001)(105586002)(54356999)(2900100001)(33656002)(39060400002)(6116002)(3846002)(102836003)(6246003)(9686003)(790700001)(53936002)(229853002)(54896002)(6306002)(6506006)(2950100002)(8936002)(3660700001)(3280700002)(66066001)(7696004)(5660300001)(97736004)(93886005)(110136005)(74316002)(316002)(2906002)(2501003)(7736002)(68736007)(6436002)(43043002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR07MB3360;H:VI1PR07MB3357.eurprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_VI1PR07MB3357ACB169C59559EC6A1599F72B0VI1PR07MB3357eurp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a246528b-d8cf-4ecb-0b5d-08d52a778a43 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2017 09:18:45.0511 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB3360 X-OriginatorOrg: ericsson.com X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0iTYRiGefcdtomLz+XyyTRqUJDnLGiZSgaRUEp0ANGipn6p6XRsSzL6 sbQf6so8oLBlOMksVEjWTC0P2yycZzGdsbLAaWYWZVhaiuV8J/jveu77fl64H14eIWygvHlp mSpWkSnNENNupDauOSQwO4kfHzLUGCiZ6KugJfce2YijnOh262MU3aqb4J7mxLuFJ7MZadms IjjysluqdrCYK38ovm4yldFqVLCzEPF5wByE23UGshC58YRMFwL131kKD1YEek057RxI5i4B X54tuWIVHLBY7TQeHAjs7+qR8zGaCYOVyTfr7MkkwPidcdrJW5lzoO9qprF+Hp4vzHAxx0Lb HM6TzB7o/l3McbKAuQDWhqV1FjL5BDxYznAyn4mAQqOZcjJifMFWXU86mWC8wD5VxcGFGKhp GyIwi2DWserKJ8Jk0SjC+i4oMH115X1hpEqDnGWAsXCh9kUZjY0gaCr55lqIAbWmgMYhLYK+ VbVr2w/aKw0U5nSYNi679DDIL+mm8MIoBTP9MyQ2fMBhK+Fiw0HBv54WuhgF6DbVwJwFlQOf Kd36OTygRztFYj0A9C9/0pj9obZ6jtjgfpODs1nXI24dEilZZaIsJTQ0iFWkJSmVWZlBmazK gNb+kNm4HNKCZmeiLIjhIbG7QH+KHy+kpNnKHJkFAY8QewpyT65JgmRpzg1WkXVJcS2DVVrQ Dh4p9hJEdQzHCZkUqYpNZ1k5q9hwOTy+txrdlC/69+71uU+Hug9viznyykP2tryz41Zs16Ds aV5ZrrZhdz7n2Heh7vhZuST+RF5Nk8GmOmCejzNE/1qwi4JNzZPGxPbIxYgBcVG06NN01tUR wZaP4WWl2u2trw/1SlbCkls+NJrNhxcuavbNn3k/P/Yk6EqXlfghKf0zFtHZnCAmlanS/X6E Qin9D4dF1B0/AwAA archived-at: Mon, 13 Nov 2017 09:19:08 -0000 --_000_VI1PR07MB3357ACB169C59559EC6A1599F72B0VI1PR07MB3357eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From what I understood, in your case you might solve your issue by using sp= ecific key classes instead of Strings. Maybe you could create key classes that have a user-specified hashcode that= could take the previous key's hashcode as a value. That way your data shou= ldn't be sent over the wire and stay in the same partition thus on the same= taskmanager.. --_000_VI1PR07MB3357ACB169C59559EC6A1599F72B0VI1PR07MB3357eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

From= what I understood, in your case you might solve your issue by using specif= ic key classes instead of Strings.

 

Mayb= e you could create key classes that have a user-specified hashcode that cou= ld take the previous key’s hashcode as a value. That way your data sh= ouldn’t be sent over the wire and stay in the same partition thus on the same taskmanager..

--_000_VI1PR07MB3357ACB169C59559EC6A1599F72B0VI1PR07MB3357eurp_--