Skip to content

5th year project - "Big Data" course at Roma Tre University

Notifications You must be signed in to change notification settings

andybergon/bigdata-finance-kafka

Repository files navigation

finance-yahoo-to-kafka

Andrea Bergonzo & [Luca Massuda] (https://github.com/Massuda)

Installation

Zookeeper

Download

Kafka

Download

Startup Services

  • zookeeper-server-start.sh $KAFKA_HOME/config/zookeeper.properties
  • kafka-server-start.sh $KAFKA_HOME/config/server.properties

Start Kafka JAR

Build JAR with Maven

from target/ folder:

  • mvn install -f ../pom.xml

Run JAR

java -cp /home/luca/git/bigdata-finance-kafka/target/finance-kafka-from-yahoo-0.0.1-SNAPSHOT-jar-with-dependencies.jar it.himyd.kafka.StockProducer localhost:9092 stock_topic 1000

  • java -cp finance-kafka-from-yahoo-0.0.1-SNAPSHOT-jar-with-dependencies.jar it.himyd.kafka.StockProducer localhost:9092 stock_topic 1000
    • java -cp finance-kafka-from-yahoo-0.0.1-SNAPSHOT-jar-with-dependencies.jar <producer-class-file> <kafka-broker> <topics-seperated-by-comma> <request-delay-ms>

Parameters

  • producer-class-file (not an args in java)
    • class file of the producer
  • kafka-broker
    • give your kafka broker address with its port
  • topics-seperated-by-comma
    • you can specify multiple kafka topics seperated by comma and implement your own logic for that topic
  • request-delay-ms
    • Number of milliseconds the generator should wait before sending another request

About

5th year project - "Big Data" course at Roma Tre University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published