master.yml 695 Bytes
Newer Older
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
---
  - name: Format Apache HDFS.
    shell: "yes | {{ installation_path }}/hadoop/bin/hadoop namenode -format"
    tags:
      - format-hdfs

  - name: Start Apache HDFS.
    shell: "{{ installation_path }}/hadoop/sbin/start-dfs.sh"
    tags:
      - start-hdfs

  - name: Start Apache Yarn.
    shell: "{{ installation_path }}/hadoop/sbin/start-yarn.sh"
    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