Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stephan/fix/decommission #883

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/hdfs/common/templates/dfs.exclude.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% for dn in hdfs_datanodes_decommission %}
{% for dn in hdfs_datanodes_decommission | default([]) %}
{{ dn }}
{% endfor %}
12 changes: 12 additions & 0 deletions roles/utils/hadoop_decommissioning_check/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# SPDX-License-Identifier: Apache-2.0

---
- name: kinit yarn RM
ansible.builtin.command: kinit -kt /etc/security/keytabs/rm.service.keytab rm/{{ ansible_hostname | tosit.tdp.access_fqdn(hostvars) }}@{{ realm }}
become: true
become_user: yarn
changed_when: false

- name: Check yarn node status
ansible.builtin.command: yarn node -list -all
register: node_output
Expand All @@ -24,6 +30,12 @@
ansible.builtin.debug:
msg: "{{ app_output.stdout }}"

- name: kinit hdfs NN
ansible.builtin.command: kinit -kt /etc/security/keytabs/nn.service.keytab nn/{{ ansible_hostname | tosit.tdp.access_fqdn(hostvars) }}@{{ realm }}
become: true
become_user: hdfs
changed_when: false

- name: Check HDFS datanodes usage
ansible.builtin.command: hdfs dfsadmin -report
register: storage_output
Expand Down
2 changes: 1 addition & 1 deletion roles/yarn/common/templates/yarn.exclude.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% for nm in yarn_nodemanagers_decommission %}
{% for nm in yarn_nodemanagers_decommission | default([]) %}
{{ nm }}
{% endfor %}
Loading