Skip to content

Commit d05670d

Browse files
authored
Merge pull request #536 from dheren-git/master_hdfs
HDFS fix for ansible yml file
2 parents b8e6196 + 9664f70 commit d05670d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/scale_hdfs/postcheck/tasks/check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
register: force_active
9494
when: ha_enabled|bool and active_status.stdout_lines | length == 0 and ceshost.stdout|length != 0
9595
delegate_to: "{{ ceshost.stdout }}"
96+
ignore_errors: yes
9697
failed_when: false
9798
run_once: true
9899

@@ -104,8 +105,9 @@
104105
- name: postcheck | Check Namenodes active status again
105106
shell: "{{ scale_hdfs_command_path }}hdfs haadmin -getAllServiceState | grep -i 'active'"
106107
register: active_status_again
107-
when: ha_enabled|bool and force_active.rc == 0
108+
when: ha_enabled|bool
108109
delegate_to: "{{ scale_server }}"
110+
ignore_errors: yes
109111
failed_when: false
110112
run_once: true
111113

0 commit comments

Comments
 (0)