- [Scala 2.10+] (http://www.scala-sbt.org/)
- [SBT] (http://www.scala-sbt.org/)
- [Apache Kafka 0.8+] (http://kafka.apache.org/)
sbt package
./bin/zookeeper-server-start.sh config/zookeeper.properties
./bin/kafka-server-start.sh config/server.properties
sbt "run-main io.traintracks.demo.spark.streaming.algebird.KafkaLogProducer"
Our SparkMeetupDemo will run the HyperLogLog algorithm and Count-Min Sketch both in one pass with Spark Streaming. It'll receive messages from Kafka's topic called sparkmeetup
sbt "run-main io.traintracks.demo.spark.streaming.algebird.SparkMeetupDemo" > SparkMeetupDemo.log
tail -f SparkMeetupDemo.log