-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Switch mysql db store to postgres #1734
Comments
This should ideally be pretty straightforward because we provide DAOs for Ebean. Make sure you update Ebean configs to access to your PostgreSQL server. You also need to replace below line for the JDBC connector dependency for PostgreSQL. https://github.com/linkedin/datahub/blob/master/gms/war/build.gradle#L10 |
@cobolbaby did you have a chance to try @keremsahin1's suggestion? I also assume our Ebean-based DAO can talk to Postgres without much trouble. |
@clojurians-org has switched the postgresql db in the forked project. Commit: clojurians-org/simple-datahub@6e678bb We need to modify the code:
Is it possible to do some compatible processing? |
Cool. Could you confirm that the doc here is sufficient? https://github.com/linkedin/datahub/blob/master/gms/README.md#using-a-different-db-backend |
After searching
In addition, the field type in init.sql needs to be adjusted |
Is it possible to package the pg driver by default? |
One option is to make it a gradle build option so you can choose to package mysql or pg (or any others DB systems in the future). |
If adopting this method, how to release docker images? |
Good point. Let me think about it a bit more and create a proper PR for this. |
Considering the technology stack used, the company made it clear that pg should be used as a unified storage.
So I need to switch mysql to pg. But when I start the gms service, it throws execption
No org.postgresql.Driver Class
.Could the relevant dependencies be packaged in the compilation process to facilitate switching jdbc driver.
The text was updated successfully, but these errors were encountered: