File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed
Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 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
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
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 }}"
Original file line number Diff line number Diff 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
2424hdfs_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
2727hdfs_ubuntu_version_path : ' hdfs_debs/ubuntu/hdfs_3.1.1.x/'
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments