storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noppanit Charassinvichai <noppani...@gmail.com>
Subject Re: Basic question about Field and Shuffle grouping.
Date Fri, 02 Sep 2016 14:26:17 GMT
Thanks for the answer!
On Fri, 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 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
>

Mime
View raw message