master.yml 1.08 KB
Newer Older
1 2 3
---
  - name: Download Apache Flink, Yarn version.
    get_url: url="{{ mirror_url }}/flink-{{ version }}/flink-{{ version }}-{{ version_for }}.tgz" dest="{{ download_path }}/flink-{{ version }}-{{ version_for }}.tgz"
Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
4
    environment: proxy_env 
5 6 7 8
    tags:
      - download

  - name: Uncompress Apache Flink.
9
    unarchive: src="{{ download_path }}/flink-{{ version }}-{{ version_for }}.tgz" dest="{{ installation_path }}" copy=no owner=flink group=lambda
10 11 12 13 14 15 16 17 18
    tags:
      - uncompress

  - name: Create softlink for Apache Flink.
    file: src="{{ installation_path }}/flink-{{ version }}" dest="{{ installation_path }}/flink" state=link
    tags:
      - uncompress

  - name: Configure Apache Flink.
19
    template: src=flink-conf.j2 dest="{{ installation_path }}/flink/conf/flink-conf.yaml" owner=flink group=lambda mode=0644
20 21 22 23
    tags:
      - configure

  - name: Copy Apache Flink init script.
24
    template: src=flink-init.j2 dest=/etc/init.d/flink-init owner=flink group=lambda mode=0740
25 26

  - name: Start Apache Flink.
27
    shell: /etc/init.d/flink-init start > /dev/null &
28 29 30
    tags:
      - start