You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
433 B
YAML
16 lines
433 B
YAML
---
|
|
- 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
|
|
|