master.yml 864 Bytes
Newer Older
1
2
3
4
5
6
7
---
  - name: Format Apache HDFS.
    shell: "yes | {{ installation_path }}/hadoop/bin/hadoop namenode -format"
    tags:
      - format-hdfs

  - name: Start Apache HDFS.
8
    shell: /etc/init.d/hdfs-init start # Should use Ansible module "service: name=hdfs-init state=started" when the bug in version 1.9.1 is fixed.
9
10
11
12
    tags:
      - start-hdfs

  - name: Start Apache Yarn.
13
    shell: /etc/init.d/yarn-init start # Should use Ansible module "service: name=yarn-init state=started" when the bug in version 1.9.1 is fixed.
14
15
16
17
18
19
20
21
22
23
24
25
26
    tags:
      - start-yarn

  - name: Create Apache HDFS user directory.
    command: "{{ installation_path }}/hadoop/bin/hadoop fs -mkdir /user"
    tags:
      - create-dirs

  - name: Create Apache HDFS user/root directory. 
    command: "{{ installation_path }}/hadoop/bin/hadoop fs -mkdir /user/root"
    tags:
      - create-dirs