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

fix: mysql-connector-java install #862

Merged
merged 1 commit into from
Aug 20, 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
9 changes: 2 additions & 7 deletions roles/hive/metastore/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@
name: tosit.tdp.hive.common
tasks_from: install_hive

- name: Install jdbc connector
ansible.builtin.package:
name: "{{ hive_jdbc_connector_package }}"
state: present

- name: Create a symbolic link to jdbc.jar
ansible.builtin.file:
src: /usr/share/java/{{ hive_jdbc_connector_package }}.jar
dest: "{{ hive_install_dir }}/lib/{{ hive_jdbc_connector_package }}.jar"
src: "{{ hive_jdbc_connector_path }}"
dest: "{{ hive_install_dir }}/lib/{{ hive_jdbc_connector_path | basename }}"
state: link

- name: Create configuration directory
Expand Down
5 changes: 0 additions & 5 deletions roles/ranger/admin/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@
owner: root
mode: "770"

- name: Install jdbc connector
ansible.builtin.package:
name: "{{ ranger_jdbc_connector_package }}"
state: present

- name: Template Ranger Admin service file
ansible.builtin.template:
src: ranger-admin.service.j2
Expand Down
5 changes: 0 additions & 5 deletions roles/ranger/kms/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@
owner: root
mode: "770"

- name: Install jdbc connector
ansible.builtin.package:
name: "{{ ranger_jdbc_connector_package }}"
state: present

- name: Template Ranger KMS service file
ansible.builtin.template:
src: ranger-kms.service.j2
Expand Down
4 changes: 2 additions & 2 deletions tdp_vars_defaults/hive/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ hadoop_conf_dir: /etc/hadoop/conf
java_home: /usr/lib/jvm/jre-1.8.0-openjdk
hdfs_user: hdfs

# JDBC connector to be installed
hive_jdbc_connector_package: mysql-connector-java
# JDBC connector path
hive_jdbc_connector_path: /usr/share/java/mysql-connector-java.jar

# Hive Metastore database properties
hive_ms_db_url: jdbc:mysql://tdp-db-1.lxd:3306
Expand Down
3 changes: 0 additions & 3 deletions tdp_vars_defaults/ranger/ranger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ ranger_keystore_password: Keystore123!
ranger_truststore_location: /etc/ssl/certs/truststore.jks
ranger_truststore_password: Truststore123!

# JDBC connector to be installed
ranger_jdbc_connector_package: mysql-connector-java

# Ranger Admin install.properties
install_properties:
setup_mode: SeparateDBA
Expand Down
Loading