-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spark2|3): add ha support for spark-hs
- Loading branch information
Showing
8 changed files
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2022 TOSIT.IO | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
- name: Spark HS keytabs creation | ||
when: (krb_create_principals_keytabs) and (spark_hs_ha_address is defined) | ||
block: | ||
- name: Ensure HTTP HA spnego user's principal and keytab exist | ||
ansible.builtin.import_role: | ||
name: tosit.tdp.utils.kerberos | ||
tasks_from: create_headless_principal_keytab | ||
vars: | ||
principal: HTTP/{{ spark_hs_ha_address | urlsplit("hostname") }} | ||
keytab: '{{ spark_hs_ha_address | urlsplit("hostname") }}.service.keytab' | ||
user: root | ||
group: "{{ hadoop_group }}" | ||
mode: "0640" | ||
|
||
- name: Spark HS keytabs check | ||
when: (not krb_create_principals_keytabs) and (spark_hs_ha_address is defined) | ||
block: | ||
- name: Ensure HA HTTP spnego's keytab is working | ||
ansible.builtin.import_role: | ||
name: tosit.tdp.utils.kerberos | ||
tasks_from: check_secure_keytab | ||
vars: | ||
principal: HTTP/{{ spark_hs_ha_address | urlsplit("hostname") }} | ||
keytab: '{{ spark_hs_ha_address | urlsplit("hostname") }}.service.keytab' | ||
user: root | ||
group: "{{ hadoop_group }}" | ||
mode: "640" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters