Skip to content

Commit dea4804

Browse files
committed
Added few more changes from dev to master
Signed-off-by: Dherendra Singh <dhersing@in.ibm.com>
1 parent 3602c09 commit dea4804

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

roles/scale_hdfs/cluster/tasks/configure.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797
- name: check | Check free ces ip
9898
shell:
99-
cmd: "mmces address list -Y|grep -v -e hdfs -e object|awk -F: '{print $7}'|grep -v cesAddress"
99+
cmd: "mmces address list -Y|awk -F: '(length($9) == 0){print $7}'"
100100
register: scale_free_ces
101101
delegate_to: "{{ scale_server }}"
102102
run_once: true
@@ -108,6 +108,8 @@
108108
when:
109109
- scale_existing_ces_ip.stdout | length == 0
110110
- scale_free_ces.stdout_lines | length > 0
111+
delegate_to: "{{ scale_server }}"
112+
run_once: true
111113

112114
- block:
113115
- name: check | fetch mountpoint
@@ -140,7 +142,7 @@
140142
delegate_to: "{{ scale_server }}"
141143

142144
- name: configure | Check HDFS ces_group
143-
shell: "/usr/lpp/mmfs/bin/mmces address list|grep {{ scale_hdfs_ces_group_name }}"
145+
shell: "/usr/lpp/mmfs/bin/mmces address list|grep -w {{ scale_hdfs_ces_group_name }}"
144146
register: check_hdfs_ces_group
145147
run_once: true
146148
delegate_to: "{{ scale_server }}"

roles/scale_hdfs/node/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ hdfs_rhel_version_path_33: 'hdfs_rpms/rhel/hdfs_3.3.x/'
2323
# Directory to install 3.1.1.x hdfs package
2424
hdfs_sles_version_path: 'hdfs_rpms/rhel/hdfs_3.1.1.x/'
2525

26-
# Directory to install 3.3.x hdfs package
26+
# Directory to install 3.1.1.x hdfs package
2727
hdfs_ubuntu_version_path: 'hdfs_debs/ubuntu/hdfs_3.1.1.x/'

roles/scale_hdfs/node/tasks/install.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,28 @@
9090
- include_tasks: prepare_env.yml
9191

9292
- block:
93-
- name:
93+
- name: install | Fetch hdfs version
9494
set_fact:
95-
hdfs_version_path_selection_rhel: "{{ hdfs_rhel_version_path_33 }}"
95+
hdfs_version_path_selection_rhel: "{{ hdfs_rhel_version_path_33 }}"
9696
when: transparency_33_enabled|bool
9797

9898
- name: install | Fetch hdfs rpm dir path for rhel
9999
set_fact:
100-
hdfs_rpm_path_rhel: "{{ hdfs_version_path_selection_rhel }}"
100+
hdfs_rpm_path_rhel: "{{ hdfs_version_path_selection_rhel }}"
101+
102+
- name: install | Set correct hdfs rpm dir path for scale release lower 5.1.2
103+
set_fact:
104+
hdfs_rpm_path_rhel: "{{ hdfs_rpm_path_rhel | replace('/rhel/','/rhel7/') }}"
105+
when: scale_version is version_compare('5.1.2', '<')
106+
107+
- name: install | Fetch hdfs rpm dir path for sles
108+
set_fact:
109+
hdfs_rpm_path_sles: "{{ hdfs_sles_version_path }}"
110+
111+
- name: install | Fetch hdfs rpm dir path for ubuntu
112+
set_fact:
113+
hdfs_rpm_path_ubuntu: "{{ hdfs_ubuntu_version_path }}"
114+
101115
run_once: true
102116
delegate_to: localhost
103117

0 commit comments

Comments
 (0)