Giter VIP home page Giter VIP logo

thesis-spark-vs-flink-koenemann's Introduction

Thesis Spark vs. Flink on heterogeneous hardware

Documenation

See thesis_spark_vs_flink.pdf

Cluster UI Flink

Master UI Overview:

http://192.168.178.56:8081/

Start Flink Application on JobManager Node:

  • Open Shell on Master:
docker exec -it jobmanager /bin/sh
  • Start own WordStream creator to send words and Flink App to consume (cluster needs to be started first):
python3 /Development/WordStreamCreator/word_stream_creator.py
./bin/flink run -c WordCount my_apps/flink-word-count_2.12-1.0.jar --9001 
  • Start own Batch Application to process BatchWordCount on Flink cluster:
./bin/flink run -c WordCountBatch my_apps/flink-word-count_2.12-1.0.jar --stdout --input input_data/50MiB 
  • Execute Batch processing of multiple experiements in jobmanager container:
sh start.sh
  • View Result from APP:
tail log/flink-*-taskexecutor-*.out

Setup Flink Cluster:

Start local:

  • Go to folder: Environments/FlinkEnv/bin
sh jobmanager.sh start-foreground

Start docker:

  • Go to folder: Environments/FlinkEnv/
docker-compose up 

SPARK

Cluster UI Spark

Master UI Overview:

http://192.168.178.56:8080/

Master UI Jobs

http://192.168.178.56:4040/jobs

Start Spark Application on Master Node:

  • Open Shell on Master:
docker exec -it spark-master bash
  • Test application from Spark, replace MasterURL and number of tasks:
spark/bin/spark-submit --class org.apache.spark.examples.SparkPi   --master  spark://$(hostname):7077    --num-executors 1     --driver-memory 1g     --executor-memory 1g     --executor-cores 1     spark/examples/jars/spark-examples*.jar 100

Start own Wordcount application

spark/bin/spark-submit --class WordCount --master spark://$(hostname):7077 --num-executors 1 /apps/spark-word-count_2.12-1.0.jar 1000 6

Setup Spark Cluster:

Build Docker Image worker:

sudo docker build -t pipi/spark:latest .

Start Master:

  • Go to folder: Environments/SparkEnv/
docker-compose up spark-master

Start Worker

docker-compose up spark-worker-surface

thesis-spark-vs-flink-koenemann's People

Contributors

alexk314 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.