The study guide answers your question.
https://storm.apache.org/documentation/Tutorial.html
Here is the code for your purpose (C / P from the tutorial):
builder.setBolt("exclaim2", new ExclamationBolt(), 5)
.shuffleGrouping("words")
.shuffleGrouping("exclaim1");
exclaim2will accept tuples both from wordsand exclaim1using random grouping.
source
share