From 3297d8aaa47e94c2408fb8d635df58ce26da069c Mon Sep 17 00:00:00 2001 From: Pierre Sauvage Date: Sat, 7 Sep 2024 19:30:05 +0200 Subject: [PATCH] feat: set postgres as default for metastore --- tdp_vars_defaults/hive/hive.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tdp_vars_defaults/hive/hive.yml b/tdp_vars_defaults/hive/hive.yml index db7765ec..3eef8c4f 100644 --- a/tdp_vars_defaults/hive/hive.yml +++ b/tdp_vars_defaults/hive/hive.yml @@ -45,14 +45,14 @@ java_home: /usr/lib/jvm/jre-1.8.0-openjdk hdfs_user: hdfs # JDBC connector path -hive_jdbc_connector_path: /usr/share/java/mysql-connector-java.jar +hive_jdbc_connector_path: /usr/share/java/postgresql-jdbc.jar # Hive Metastore database properties -hive_ms_db_url: jdbc:mysql://tdp-db-1.lxd:3306 +hive_ms_db_url: jdbc:postgresql://localhost:5432/ hive_ms_db_name: hive hive_ms_db_user: hive hive_ms_db_password: hive -db_type: mysql +db_type: postgres # Kerberos ### @@ -95,7 +95,8 @@ hive_site: metastore_site: datanucleus.schema.autoCreateAll: "false" - javax.jdo.option.ConnectionDriverName: com.mysql.jdbc.Driver + javax.jdo.option.ConnectionURL: "{{ hive_ms_db_url }}/{{ hive_ms_db_name }}" + javax.jdo.option.ConnectionDriverName: org.postgresql.Driver javax.jdo.option.ConnectionUserName: "{{ hive_ms_db_user }}" metastore.hmshandler.retry.interval: 2 metastore.hmshandler.retry.attempts: 10