Skip to content

Commit 33d9fbd

Browse files
authored
Merge pull request #546 from dheren-git/scale-hdfs-512
SLES,UBUNTU not supported validation added in HDFS precheck
2 parents 1a5026a + eabba71 commit 33d9fbd

File tree

6 files changed

+23
-16
lines changed

6 files changed

+23
-16
lines changed

roles/scale_hdfs/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Role Definition
66
- It allows computers connected to the same network or domain to access files from other local computers as easily as if they
77
were on the computer's local hard drive.
88

9+
OS/Arch Support:
10+
---------------------------
11+
- Arch :
12+
-1: x86
13+
-2: PowerLe
14+
- OS :
15+
-1: RHEL7
16+
-2: RHEL8
17+
918
Prerequisite
1019
----------------------------
1120
- CES should be enabled and configured.
@@ -61,11 +70,11 @@ Implementation
6170
- If ‘scale_install_repository_url’ is undefined and ‘scale_install_remotepkg_path’ is defined, then the installation method is remote.
6271
- If ‘scale_install_repository_url’ is undefined and ‘scale_install_remotepkg_path’ is undefined and ‘scale_install_localpkg_path’ is defined, then the installation method is local.
6372
- Depending on the installation method, appropriate playbook is called for collecting the rpms and rpms are installed on all the nodes on which hdfs is enabled.
64-
73+
6574
- `Cluster`
6675
- This role setup all hdfs required configurations.
6776
- To enable hdfs protocol, we run command `mmces service enable hdfs` on all the nodes where hdfs is enabled.
68-
77+
6978
- `Postcheck`
7079
- This role verify namenodes and datanodes status.
7180
- This role uses command `mmces service list` to check if hdfs service is up and running.

roles/scale_hdfs/node/tasks/install.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,5 @@
103103

104104
- include_tasks: install_{{ scale_installmethod }}.yml
105105

106-
#- import_tasks: apt/install.yml
107-
#when: ansible_distribution in scale_ubuntu_distribution
108-
109106
- import_tasks: yum/install.yml
110107
when: ansible_distribution in scale_rhel_distribution
111-
112-
#- import_tasks: zypper/install.yml
113-
#when: ansible_distribution in scale_sles_distribution
114-

roles/scale_hdfs/node/vars/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ scale_install_all_packages: gpfs.hdfs-protocol
88
## Default scale extraction path
99
scale_extracted_default_path: "/usr/lpp/mmfs"
1010
scale_extracted_path: "{{ scale_extracted_default_path }}/{{ scale_version }}"
11+

roles/scale_hdfs/precheck/tasks/check.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838
server: "{{ scale_hdfs_cluster.namenodes[0] }}"
3939
delegate_to: localhost
4040
run_once: true
41-
41+
42+
- fail:
43+
msg: "HDFS is not supported on {{ ansible_distribution }} OS."
44+
when: ansible_distribution not in hdfs_os_distribution
45+
delegate_to: "{{ server }}"
46+
run_once: true
47+
4248
- name: check | verify cesip address
4349
set_fact:
4450
export_cesip_length: "{{ scale_protocols.export_ip_pool| length }}"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
---
22
# vars file for precheck
3+
## Supported HDFS os distrubution
4+
hdfs_os_distribution:
5+
- RedHat
6+
- CentOS

roles/scale_hdfs/upgrade/tasks/upgrade.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,5 @@
5959

6060
- include_tasks: upgrade_{{ scale_installmethod }}.yml
6161

62-
#- import_tasks: apt/upgrade.yml
63-
#when: ansible_distribution in scale_ubuntu_distribution
64-
6562
- import_tasks: yum/upgrade.yml
6663
when: ansible_distribution in scale_rhel_distribution
67-
68-
#- import_tasks: zypper/upgrade.yml
69-
#when: ansible_distribution in scale_sles_distribution

0 commit comments

Comments
 (0)