From 5af9c4c727ca1f47d7e97bfa3f94435333162691 Mon Sep 17 00:00:00 2001 From: Sebastian Fellner <sebastian.fellner@student.tugraz.at> Date: Thu, 20 Jan 2022 12:35:36 +0100 Subject: [PATCH] Update README --- README.md | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7458327..a79a420 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,38 @@ # Code samples for Data Stream Processing -## Install dependencies +## Preparation: Install dependencies ``` pip3 -r requirements.txt ``` -## Run the Spark application +## Word counts +Start the Spark application: +```sh +python3 wordcount.py ``` -python3 average.py + +In another terminal session, execute +```sh +touch text-data/data.txt ``` -## Feed the example data into the application +## Averages +Start the Spark application: +```sh +python3 average.py ``` + +In another terminal session, execute +```sh ./send-data.sh ``` + +## Averages (SQL) + +Start the Spark application: +```sh +python3 average-sql.py +``` -- GitLab