Andrea Bergonzo & [Luca Massuda] (https://github.com/Massuda)
zookeeper-server-start.sh $KAFKA_HOME/config/zookeeper.properties
kafka-server-start.sh $KAFKA_HOME/config/server.properties
from target/
folder:
mvn install -f ../pom.xml
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>
- 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