use of org.apache.storm.kafka.spout.test.KafkaSpoutTestBolt in project storm by apache.
the class SingleTopicKafkaSpoutConfiguration method getTopologyKafkaSpout.
public static StormTopology getTopologyKafkaSpout(int port) {
final TopologyBuilder tp = new TopologyBuilder();
tp.setSpout("kafka_spout", new KafkaSpout<>(getKafkaSpoutConfig(port)), 1);
tp.setBolt("kafka_bolt", new KafkaSpoutTestBolt()).shuffleGrouping("kafka_spout", STREAM);
return tp.createTopology();
}
Aggregations