Code Monkey home page Code Monkey logo

docker-flink's Introduction

Flink docker

Apache Flink docker images to:

  • Setup a standalone Apache Flink cluster running one Flink Master and multiple Flink workers
  • Build Flink applications in Scala, Java or Python to run on a Flink cluster

Currently supported versions:

  • Flink 1.3.1 for Hadoop 2.7 and Scala 2.11
  • Flink 1.3.0 for Hadoop 2.7 and Scala 2.11
  • Flink 1.2.1 for Hadoop 2.7 and Scala 2.11
  • Flink 1.2.0 for Hadoop 2.7 and Scala 2.11
  • Flink 1.1.4 for Hadoop 2.7 and Scala 2.11
  • Flink 1.1.3 for Hadoop 2.7 and Scala 2.11
  • Flink 0.10.2 for Hadoop 2.7 and Scala 2.11
  • Flink 0.10.1 for Hadoop 2.7 and Scala 2.11

Using Docker Compose

Add the following services to your docker-compose.yml to integrate a Flink master and Flink worker in your BDE pipeline:

flink-master:
   image: bde2020/flink-master
   hostname: flink-master
   container_name: flink-master
   environment:
      - INIT_DAEMON_STEP=setup_flink
#     - "constraint:node==<yourmasternode>"

   ports:
     - "8080:8080"
     - "8081:8081"

 flink-worker:
   image: bde2020/flink-worker
   hostname: flink-worker
   container_name: flink-worker
   environment:
     - FLINK_MASTER_PORT_6123_TCP_ADDR=flink-master
#    - FLINK_NUM_TASK_SLOTS=2
#    - "constraint:node==<yourworkernode>"
   depends_on:
      - "flink-master"

Running Docker containers without the init daemon

Flink Master

To start a Flink master:

docker run --name flink-master -h flink-master -e ENABLE_INIT_DAEMON=false -d bde2020/flink-master:latest

Flink Worker

To start a Flink worker:

docker run --name flink-worker --link flink-master:flink-master -e ENABLE_INIT_DAEMON=false -d bde2020/flink-worker:latest

Launch a Flink application

Building and running your Flink application on top of the Flink cluster is as simple as extending a template Docker image. Check the template's README for further documentation.

docker-flink's People

Contributors

gezimsejdiu avatar earthquakesan avatar luigiselmi avatar

Watchers

James Cloos avatar Ehab Qadah 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.