10 lines
272 B
YAML
10 lines
272 B
YAML
|
---
|
||
|
- name: Format the namenode, if it\'s not already formatted. Runs on the first namenode only
|
||
|
become: True
|
||
|
become_user: hdfs
|
||
|
command: creates={{ hdfs_data_dir }}/{{ hdfs_nn_data_dir }}/current/VERSION hdfs namenode -format -force
|
||
|
tags:
|
||
|
- hadoop
|
||
|
- hdfs
|
||
|
|