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

feat: set postgres as default for metastore #876

Merged
merged 1 commit into from
Sep 20, 2024
Merged
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: 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/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
###
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 }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we do not support HA for the backend by default.

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
Loading