#Apache Flink cluster deployment on Docker using Docker-Compose
##Installation ###Install Docker
https://docs.docker.com/installation/
if you have issues with Docker-Compose versions incompatible with your version of Docker try
curl -sSL https://get.docker.com/ubuntu/ | sudo sh
###Install Docker-Compose
curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
###Get the repo
###Build the images
Images are based on Ubuntu Trusty 14.04 and run Supervor to stay alive when running containers.
The base image installs Oracle Java JDK 1.7 and SSH client & server. You can change the SSH password there or add your own key and adjust SSH config.
./build.sh
###Deploy
docker-compose up
docker-compose up -d
docker-compose scale taskmanager=<N>
ssh root@localhost -p 220
or on Mac OS X with boot2docker
ssh root@$(boot2docker ip) -p 220
The password is ‘secret’
docker-compose kill
scp -P 220 <your_jar> root@localhost:/<your_path>
ssh -p 220 root@localhost /usr/local/flink/bin/flink run -c <your_class> <your_jar> <your_params>
or
ssh to the job manager and run the topology from there.
###Ports
48080
48081
6123
(default, not exposed to host)6121
(default, not exposed to host)6122
(default, not exposed to host)220
docker ps
Edit the docker-compose.yml
file to edit port settings.