public class KafkaProducerTopology extends Object
Constructor and Description |
---|
KafkaProducerTopology() |
Modifier and Type | Method and Description |
---|---|
static StormTopology |
newTopology(String brokerUrl,
String topicName) |
public static StormTopology newTopology(String brokerUrl, String topicName)
brokerUrl
- Kafka broker URLtopicName
- Topic to which publish sentencesRandomSentenceSpout
and uses a KafkaBolt
to publish the sentences to the kafka topic specifiedCopyright © 2019 The Apache Software Foundation. All Rights Reserved.