Skip to content

Commit

Permalink
feat: set postgres as default for metastore
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierrotws committed Sep 8, 2024
1 parent 5f672b7 commit 5cf4cad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tdp_vars_defaults/hive/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/postgres-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
###
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5cf4cad

Please sign in to comment.