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 B97AB200B78 for ; Fri, 2 Sep 2016 16:26:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7FC8160AAE; Fri, 2 Sep 2016 14:26: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 0C252160A8C for ; Fri, 2 Sep 2016 16:26:38 +0200 (CEST) Received: (qmail 17703 invoked by uid 500); 2 Sep 2016 14:26:37 -0000 Mailing-List: contact user-help@storm.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@storm.apache.org Delivered-To: mailing list user@storm.apache.org Received: (qmail 17693 invoked by uid 99); 2 Sep 2016 14:26:37 -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, 02 Sep 2016 14:26:37 +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 6F5581A0398 for ; Fri, 2 Sep 2016 14:26:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-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 WHq_fkSmCWqM for ; Fri, 2 Sep 2016 14:26:35 +0000 (UTC) Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com [209.85.161.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C3F1C5F39A for ; Fri, 2 Sep 2016 14:26:34 +0000 (UTC) Received: by mail-yw0-f180.google.com with SMTP id l8so2999119ywb.0 for ; Fri, 02 Sep 2016 07:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DCMCC4oUjwkEOnS1NFuwv7Cs2vJcZF1HPqruuPnD/qk=; b=kNKysSaqhUwx7/AktfMcHZZ5etGOfk1rfZPKfvzyS0iKtJ/2SFEKXdg0yny5QHmjCC vVXQRYFFWaxLJt44k5+OSMqKS0JidCAivTkaOOSC+a1LUr1g+Rm0tIRsaR3SDmpHFHyO n26krLHeYCaelLq1QpC34VA8ew47L52MihzoKzMbRsjjnMZZLhanL1N0xUc1Y4VEgVqH pcEGsVJyG48XFIovxZfKjQ+Fki5acQy1iCWxMcVgIijrlvlqjKrtU3JGkxwbzMwLjVOz 0Jf85GMYGJz3Se3w9eFhVPbGrBo2av8TKE86fPVUatdhQCw/dFBLquXcg8k8isRJgKOT Z6jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=DCMCC4oUjwkEOnS1NFuwv7Cs2vJcZF1HPqruuPnD/qk=; b=PEQeLmoFZY3PYo4jCrY3hvFF4ncX48dHv5TTkDgBCV4g0u6yVYQVb9IqHMHeMyQXIQ tiPLzfyA69e3iSIeY9PvRHlNAzVnyKrbDixV7J08EOpJsFPe9LfD4Y0EDPKhVaHh6D1X CRcteCRQhTjTucC/BKPR9QalVmEhODbOlpqYaIbSm678ltnQgMZQ/p4LCg7LVkqVGem1 5qBqAEbzPm9+UBQUYLmuPhu3q51QW/q1bhbtI0g0DpyUL0ZCox5IicMcmT5iiHU5VWfY BZVEaYI3wG4rFSho/Nb4idBe0HfX8iS08OtgOiEavcZjwCAa2lQqIf9c+cRsLsbfNtFj WJyQ== X-Gm-Message-State: AE9vXwMEDLntXboDt1OH8CA7WrxdySVstyPczyQcNmll/cp0uFllbum4Im7Uhm1ZzSxooOL5sWTtg6mlroxkAQ== X-Received: by 10.129.77.4 with SMTP id a4mr18501499ywb.67.1472826388248; Fri, 02 Sep 2016 07:26:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Noppanit Charassinvichai Date: Fri, 02 Sep 2016 14:26:17 +0000 Message-ID: Subject: Re: Basic question about Field and Shuffle grouping. To: user@storm.apache.org Content-Type: multipart/alternative; boundary=001a1140c8ccafff2f053b871d86 archived-at: Fri, 02 Sep 2016 14:26:39 -0000 --001a1140c8ccafff2f053b871d86 Content-Type: text/plain; charset=UTF-8 Thanks for the answer! On Fri, Sep 2, 2016 at 00:30 Navin Ipe wrote: > Shuffle grouping should do fine for you. But if you want certain specific > JSON to go to a specific bolt's task everytime, then fields grouping will > help. Eg: If you are parsing a JSON file related to Mr.x, Mr.y and Mr.z and > you have task 1, 2 and 3 of a Bolt, and you want Mr.x's data to go to task > 1 always and Mr.y's data to go to task 2 always, then fields grouping helps. > > On Fri, Sep 2, 2016 at 7:45 AM, Noppanit Charassinvichai < > noppanit.c@gmail.com> wrote: > >> I'm quite new to Storm. I have a simple question about whether to use >> Field or Shuffle grouping. Am I correcting to understand that the reason to >> use FieldGrouping is when you have some sort of state in your bolt so you >> want to have the tuple with the same field go to the same Bolt. If my >> Topology is simple as get some data parse some JSON and pass that JSON >> stream to DB. I don't really need to use Field grouping? And shuffle >> grouping would be better in this case? >> >> Thanks. >> > > > > -- > Regards, > Navin > --001a1140c8ccafff2f053b871d86 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the answer!
On Fr= i, Sep 2, 2016 at 00:30 Navin Ipe <navin.ipe@searchlighthealth.com> wrote:
Shuffle grouping should do fine = for you. But if you want certain specific JSON to go to a specific bolt'= ;s task everytime, then fields grouping will help. Eg: If you are parsing a= JSON file related to Mr.x, Mr.y and Mr.z and you have task 1, 2 and 3 of a= Bolt, and you want Mr.x's data to go to task 1 always and Mr.y's d= ata to go to task 2 always, then fields grouping helps.

On Fri, Sep 2, 2016 at 7:45 AM, Noppanit Charassinvichai <noppani= t.c@gmail.com> wrote:
I'm quite new to Storm. I have a simple question about whet= her to use Field or Shuffle grouping. Am I correcting to understand that th= e reason to use FieldGrouping is when you have some sort of state in your b= olt so you want to have the tuple with the same field go to the same Bolt. = If my Topology is simple as get some data parse some JSON and pass that JSO= N stream to DB. I don't really need to use Field grouping? And shuffle = grouping would be better in this case?

Thanks.



--
Regards,=
Navin
--001a1140c8ccafff2f053b871d86--