Commit c8eeb21f authored by Georgios Ouzounis's avatar Georgios Ouzounis
Browse files

LAM-16 Tasks for installing and configuring Apache Flink are now embedded in...

LAM-16 Tasks for installing and configuring Apache Flink are now embedded in flink-install.yml playbook.
parent 68ce8733
......@@ -25,13 +25,13 @@ jobmanager.rpc.address: master
jobmanager.rpc.port: 6123
jobmanager.heap.mb: 4096
jobmanager.heap.mb: 512
taskmanager.heap.mb: 512
taskmanager.numberOfTaskSlots: 8
taskmanager.numberOfTaskSlots: 2
parallelization.degree.default: 24
parallelization.degree.default: 2
#==============================================================================
# Web Frontend
......
---
- hosts: master
user: root
tasks:
- name: Download Apache Flink, Yarn version.
get_url: url=http://apache.tsl.gr/flink/flink-0.8.1/flink-0.8.1-bin-hadoop2-yarn.tgz dest=/root/flink-0.8.1-bin-hadoop2-yarn.tgz
- name: Uncompress Apache Flink.
unarchive: src=/root/flink-0.8.1-bin-hadoop2-yarn.tgz dest=/usr/local copy=no
- name: Create softlink for Apache Flink.
file: src=/usr/local/flink-yarn-0.8.1 dest=/usr/local/flink state=link
- name: Configure Apache Flink.
copy: src=../files/usr/local/flink/conf/flink-conf.yaml dest=/usr/local/flink/conf/flink-conf.yaml owner=root group=root mode=0644
- name: Start Apache Flink.
shell: /usr/local/flink/bin/yarn-session.sh -n 2 -tm 512
async: 31536000 # Stay alive for a year(1 year = 31536000 seconds).
poll: 0
---
- hosts: master
user: root
tasks:
- include: ../tasks/apache-flink/download-flink.yml tags=download
- include: ../tasks/apache-flink/uncompress-flink.yml tags=uncompress
- include: ../tasks/apache-flink/create-softlink-flink.yml tags=uncompress
- include: ../tasks/apache-flink/configure-flink.yml tags=configure
- include: ../tasks/apache-flink/start-flink.yml tags=start-flink
../tasks/
\ No newline at end of file
---
- name: Configure Apache Flink.
copy: src=../files/usr/local/flink/conf/flink-conf.yaml dest=/usr/local/flink/conf/flink-conf.yaml owner=root group=root mode=0644
---
- name: Create softlink for Apache Flink.
file: src=/usr/local/flink-yarn-0.8.1 dest=/usr/local/flink state=link
---
- name: Download Apache Flink, Yarn version.
get_url: url=http://apache.tsl.gr/flink/flink-0.8.1/flink-0.8.1-bin-hadoop2-yarn.tgz dest=/root/flink-0.8.1-bin-hadoop2-yarn.tgz
---
- name: Start Apache Flink.
shell: /usr/local/flink-yarn-0.8.1/bin/yarn-session.sh -n 2 -tm 4096
async: 31536000 # Stay alive for a year(1 year = 31536000 seconds).
poll: 0
---
- name: Uncompress Apache Flink.
unarchive: src=/root/flink-0.8.1-bin-hadoop2-yarn.tgz dest=/usr/local copy=no
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment