How to send output of two different Spout to the same Bolt?
I have two Kafka Spouts whose values I want to send to the same bolt. Is it possible ? Yes it is possible: TopologyBuilder b = new TopologyBuilder(); b.setSpout("topic_1", new KafkaSpout(...)); b.setSpout("topic_2", new KafkaSpout(...)); b.setBolt("bolt", new MyBolt(...)).shuffleGrouping("topic_1").shuffleGrouping("topic_2"); You can use any other grouping, too. Update: In order to distinguish tuples (ie, topic_1 or topic_2) in consumer bolt, there are two possibilities: 1) You can use operator IDs (as suggested by @user-4870385): if(input.getSourceComponent().equalsIgnoreCase("topic_1")) { /