Class KafkaProducerTopology


  • public class KafkaProducerTopology
    extends Object
    • Constructor Detail

      • KafkaProducerTopology

        public KafkaProducerTopology()
    • Method Detail

      • newTopology

        public static StormTopology newTopology​(String brokerUrl,
                                                String topicName)
        Create a new topology that writes random UUIDs to Kafka.
        Parameters:
        brokerUrl - Kafka broker URL
        topicName - Topic to which publish sentences
        Returns:
        A Storm topology that produces random UUIDs using a LambdaSpout and uses a KafkaBolt to publish the UUIDs to the kafka topic specified