A sample app demonstrating a word count example
- Build using - mvn clean package
- Create a topic - testtopic in kafka
- Submit the jar to spark using - ./bin/spark-submit --class org.sparkexample.JavaKafkaWordCount --master local[2] /mnt/media/Projects/rnd/spark/spark-kafka-poc/target/first-example-1.0-SNAPSHOT-jar-with-dependencies.jar localhost default testtopic 1
- Create a producer for above topic and submit messages.