官术网_书友最值得收藏!

Stream grouping

The following are different types of grouping available with Storm:

  • Shuffle grouping: Shuffle grouping distributes tuples equally across the tasks. An equal number of tuples are received by all tasks.
  • Field grouping: In this grouping, tuples are sent to the same bolt based on one or more fields, for example, in Twitter if we want to send all tweets from the same tweet to the same bolt then we can use this grouping.
  • All grouping: All tuples are sent to all bolts. Filtering is one operation where we need all grouping.
  • Global grouping: All tuples send a single bolt. Reduce is one operation where we need global grouping.
  • Direct grouping: The producer of the tuple decides which of the consumer's task will receive the tuple. This is possible for only streams that are declared as direct streams.
  • Local or shuffle grouping: If the source and target bolt are running in the same worker process then it is local grouping, as no network hops are required to send the data across the network. If this is not the case, then it is the same as shuffle grouping.
  • Custom grouping: You can define your own custom grouping.
主站蜘蛛池模板: 察哈| 廉江市| 沁阳市| 固镇县| 宁远县| 景宁| 邯郸县| 高清| 连江县| 扬州市| 福泉市| 延川县| 高要市| 万载县| 抚顺县| 太和县| 秦皇岛市| 和林格尔县| 登封市| 平陆县| 错那县| 博罗县| 高邑县| 信丰县| 安西县| 漠河县| 电白县| 丹凤县| 稷山县| 视频| 新余市| 同仁县| 凤山市| 西乌珠穆沁旗| 张家港市| 涪陵区| 青龙| 玛纳斯县| 崇义县| 龙岩市| 平果县|