Skip to content

Commit ea33043

Browse files
committed
HDFS upgrade issue and adding validation in configure.py
Signed-off-by: Dherendra Singh<dhersing@in.ibm.com>
1 parent 8bd559e commit ea33043

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

roles/scale_hdfs/cluster/tasks/configure.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@
160160
run_once: true
161161
delegate_to: "{{ scale_server }}"
162162

163+
- fail:
164+
msg: "Failed due to namenodes are running, please stop namenodes(/usr/lpp/mmfs/hadoop/sbin/mmhdfs hdfs-nn stop) and retry deploy."
165+
when: ha_enabled|bool and not ces_hdfs_enabled|bool and ha_enable_dir.rc != 0
166+
run_once: true
167+
delegate_to: "{{ scale_server }}"
168+
163169
- name: Configure | Set JAVA_HOME
164170
command: "/usr/lpp/mmfs/hadoop/sbin/mmhdfs config set hadoop-env.sh -k JAVA_HOME={{ javahome_path.stdout }}"
165171
register: javahome

roles/scale_hdfs/upgrade/tasks/yum/upgrade.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
yum:
1313
name: "{{ scale_upgrade_all_packages }}"
1414
state: latest
15+
update_only: yes
1516
disable_gpg_check: "{{ disable_gpgcheck }}"

0 commit comments

Comments
 (0)