Create and Share a New Presto Repository
To create a new shared repository
1. Create a new Presto Repository in the appropriate database for your environment.
Using the SQL tool for the database that will be host, add Presto Repository tables with the scripts shown below from the corresponding folder in presto-install/prestorepository:
Database | Folder | SQL Scripts |
Microsoft SQL Server | mssqldb | createDBTables.txt for MetaData and the default User Repository createSnapsTables.txt for Snapshots createSchedulerTables.txt for Scheduler |
MySQL | mysqldb |
Oracle | oracledb |
PostgreSQL | postgresdb |
There are also scripts to drop the corresponding Presto Repository tables in these folders, if needed.
2. Copy the JAR file for the JDBC driver for your database to the presto-config folder for JAR files.
If you are using a shared external configuration folder, you can copy the JAR to that single folder. For example, you might copy this to G:\PrestoConfig\lib on a Windows system or /mountA/home/PrestoConfig/lib on Linux, Mac OS X or UNIX systems.
If you are not sharing a configuration folder across the cluster, you must copy the JAR to
web-apps-home/presto/WEB-INF/lib for each
Presto Server that uses this
Presto Repository. See
Setting Up an External
Presto
Configuration Folder for more information.
4. Copy the rdsJdbc.properties file to the presto-config folder for the entire cluster or to each Presto Server in the cluster.
If you are using a shared external
Presto configuration folder, both of these files are already in the list of property files that you place in this folder. See
Setting Up an External
Presto
Configuration Folder for more information.
7. Restart each Presto Server in the cluster.