Apache Flink docker image
Shell CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

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.5.1 for Hadoop 2.8 and Scala 2.11
  • Flink 1.5.1 for Hadoop 2.7 and Scala 2.11
  • Flink 1.5.0 for Hadoop 2.8 and Scala 2.11
  • Flink 1.5.0 for Hadoop 2.7 and Scala 2.11
  • Flink 1.4.2 for Hadoop 2.8 and Scala 2.11
  • Flink 1.4.2 for Hadoop 2.7 and Scala 2.11
  • Flink 1.4.1 for Hadoop 2.8 and Scala 2.11
  • Flink 1.4.1 for Hadoop 2.7 and Scala 2.11
  • Flink 1.4.0 for Hadoop 2.8 and Scala 2.11
  • Flink 1.4.0 for Hadoop 2.7 and Scala 2.11
  • Flink 1.3.2 for Hadoop 2.7 and Scala 2.11
  • 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:1.5.1-hadoop2.8
   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:1.5.1-hadoop2.8
   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

docker network create flink-net

Flink Master

To start a Flink master:

docker run --name flink-master --net flink-net -e ENABLE_INIT_DAEMON=false -d bde2020/flink-master:1.5.1-hadoop2.8

Flink Worker

To start a Flink worker:

docker run --name flink-worker --net flink-net -e ENABLE_INIT_DAEMON=false -e FLINK_MASTER_PORT_6123_TCP_ADDR=flink-master -d bde2020/flink-worker:1.5.1-hadoop2.8

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.