From 565d9dfae1471e19d4f6f2a84dc64beedc2802ff Mon Sep 17 00:00:00 2001 From: Jean-Marie Gervais Date: Mon, 25 Mar 2024 11:33:03 +0100 Subject: [PATCH] fix: reestablish hadoop conf link --- roles/hdfs/ranger/tasks/config.yml | 6 ++++++ roles/yarn/ranger/tasks/config.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/roles/hdfs/ranger/tasks/config.yml b/roles/hdfs/ranger/tasks/config.yml index c788a21d..de4e2da0 100644 --- a/roles/hdfs/ranger/tasks/config.yml +++ b/roles/hdfs/ranger/tasks/config.yml @@ -39,3 +39,9 @@ ./enable-hdfs-plugin.sh args: chdir: "{{ ranger_hdfs_install_dir }}" + +- name: Reestablish symbolic link from etc/hadoop in {{ hadoop_install_dir }} to {{ hadoop_client_conf_dir }} + ansible.builtin.file: + src: "{{ hadoop_client_conf_dir }}" + dest: "{{ hadoop_install_dir }}/etc/hadoop" + state: link diff --git a/roles/yarn/ranger/tasks/config.yml b/roles/yarn/ranger/tasks/config.yml index f4a0018f..b66ee643 100644 --- a/roles/yarn/ranger/tasks/config.yml +++ b/roles/yarn/ranger/tasks/config.yml @@ -40,3 +40,9 @@ ./enable-yarn-plugin.sh args: chdir: "{{ ranger_yarn_install_dir }}" + +- name: Reestablish symbolic link from etc/hadoop in {{ hadoop_install_dir }} to {{ hadoop_client_conf_dir }} + ansible.builtin.file: + src: "{{ hadoop_client_conf_dir }}" + dest: "{{ hadoop_install_dir }}/etc/hadoop" + state: link