-
Notifications
You must be signed in to change notification settings - Fork 2
/
flink_playbook.yaml
48 lines (40 loc) · 1.05 KB
/
flink_playbook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
- hosts: all
become: yes
remote_user: root
gather_facts: no
tasks:
- name: 'copy flink configuration file'
copy:
src: "./{{ flink_yaml }}"
dest: "{{ flink_conf_dir }}/flink-conf.yaml"
# owner: "{{ user }}"
# group: users
mode: 0644
- name: 'copy flink masters file'
copy:
src: "./{{ masters }}"
dest: "{{ flink_conf_dir }}/masters"
# owner: "{{ user }}"
# group: users
mode: 0644
- name: 'copy flink slaves file'
copy:
src: "./{{ slaves }}"
dest: "{{ flink_conf_dir }}/slaves"
# owner: "{{ user }}"
# group: users
mode: 0644
- hosts: jobmanager
become: yes
remote_user: root
gather_facts: no
tasks:
- name: 'starting flink jobmanager'
shell: "nohup {{ flink_bin_dir }}/jobmanager.sh start"
- hosts: taskmanager
become: yes
remote_user: root
gather_facts: no
tasks:
- name: 'starting flink taskmanagers'
shell: "nohup {{ flink_bin_dir }}/taskmanager.sh start"