hadoop-ansible/roles/hadoop_init_nn_0/tasks/main.yml

10 lines
272 B
YAML
Raw Normal View History

---
- 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