A Flink application project using Scala and SBT.
In our Apache Flink data processing pipeline, we used the window sliding method with a window size of 10 seconds and a slide length of 5 seconds.
You need to make sure you have JVM, Scala and SBT installed.
- Change application configuration in file
src/main/resources/application.conf
API_KEY = --RealStoncks API key--
OUTPUT_FOLDER = --Directory where flink sinks data--
- Change Python script input directory in file
plotting/plotting.py
folder_path = "OUTPUT_FOLDER\\output"
- Start flink server
sbt run
- Run python script. Make sure to wait for flink to generate necessary files.
python plotting/plotting.py