Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
okeanos-LoD
Commits
af7fba35
Commit
af7fba35
authored
Jul 08, 2015
by
Georgios Ouzounis
Browse files
LAM-33 Created variables for the mirror, version and installation path in apache-flink role.
parent
93f96115
Changes
3
Hide whitespace changes
Inline
Side-by-side
ansible/host_vars/master-node
View file @
af7fba35
# Uncomment the following line and fill the IP address of the master node.
# master_node_ip:
## Apache Flink variables.
jobmanager_heap_mb: 256
taskmanager_heap_mb: 512
taskmanager_numberOfTaskSlots: 2
parallelization_degree_default: 2
number_of_taskmanagers: 2
ram_per_task_manager: 768
ansible/roles/apache-flink/tasks/main.yml
View file @
af7fba35
---
-
name
:
Download Apache Flink, Yarn version.
get_url
:
url=
http://mirrors.myaegean.gr/apache/flink/flink-0.9.0/flink-0.9.0-bin-hadoop27
.tgz dest=
/root/flink-0.9.0-bin-hadoop27
.tgz
get_url
:
url=
"{{ mirror_url }}/flink-{{ version }}/flink-{{ version }}-{{ version_for }}
.tgz
"
dest=
"{{ download_path }}/flink-{{ version }}-{{ version_for }}
.tgz
"
tags
:
-
download
-
name
:
Uncompress Apache Flink.
unarchive
:
src=
/root/flink-0.9.0-bin-hadoop27
.tgz dest=
/usr/local
copy=no
unarchive
:
src=
"{{ download_path }}/flink-{{ version }}-{{ version_for }}
.tgz
"
dest=
"{{ installation_path }}"
copy=no
tags
:
-
uncompress
-
name
:
Create softlink for Apache Flink.
file
:
src=
/usr/local/flink-0.9.0 dest=/usr/local
/flink state=link
file
:
src=
"{{ installation_path }}/flink-{{ version }}" dest="{{ installation_path }}
/flink
"
state=link
tags
:
-
uncompress
-
name
:
Configure Apache Flink.
template
:
src=
usr/local/flink/conf/flink-conf.j2 dest=/usr/local
/flink/conf/flink-conf.yaml owner=root group=root mode=0644
template
:
src=
flink-conf.j2 dest="{{ installation_path }}
/flink/conf/flink-conf.yaml
"
owner=root group=root mode=0644
tags
:
-
configure
-
name
:
Start Apache Flink.
shell
:
/usr/local
/flink/bin/yarn-session.sh -n {{ number_of_taskmanagers }} -tm {{ ram_per_task_manager }}
shell
:
"
{{
installation_path
}}
/flink/bin/yarn-session.sh
-n
{{
number_of_taskmanagers
}}
-tm
{{
ram_per_task_manager
}}
"
async
:
31536000
# Stay alive for a year(1 year = 31536000 seconds).
poll
:
0
tags
:
...
...
ansible/roles/apache-flink/vars/main.yml
0 → 100644
View file @
af7fba35
---
mirror_url
:
"
http://mirrors.myaegean.gr/apache/flink"
version
:
"
0.9.0"
version_for
:
"
bin-hadoop27"
download_path
:
"
/root"
installation_path
:
"
/usr/local"
jobmanager_heap_mb
:
256
taskmanager_heap_mb
:
512
taskmanager_numberOfTaskSlots
:
2
parallelization_degree_default
:
2
number_of_taskmanagers
:
2
ram_per_task_manager
:
768
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment