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

16 lines
433 B
YAML
Raw Normal View History

---
- name: Wait for the first namenode before doing anything
wait_for: host={{ hostvars[groups['hdfs_primary_master'][0]].ipv4_address|default(hostvars[groups['hdfs_primary_master'][0]].ansible_default_ipv4.address) }} port={{ hdfs_nn_http_port }}
tags:
- hadoop
- hdfs
- name: Bootstrap the second namenode
become: True
become_user: hdfs
command: hdfs namenode -bootstrapStandby
tags:
- hadoop
- hdfs