public class TridentKafkaTopology extends Object
Constructor and Description |
---|
TridentKafkaTopology() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
To run this topology ensure you have a kafka broker running and provide connection string to broker as argument.
|
public static void main(String[] args) throws Exception
To run this topology ensure you have a kafka broker running and provide connection string to broker as argument. Create a topic test with command line, kafka-topics.sh –create –zookeeper localhost:2181 –replication-factor 1 –partition 1 –topic test
run this program and run the kafka consumer: kafka-console-consumer.sh –zookeeper localhost:2181 –topic test –from-beginning
you should see the messages flowing through.
args
- Exception
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.