This topic explains how to configure an Amazon Redshift database as an external data source.
LabKey Server requires the Redshift driver to connect to Amazon Redshift databases.
Obtain the latest JDBC 4.2 driver from this page, and place it in the <tomcat-home>/lib directory.
Add a <Resource> element, to your installation's labkey.xml configuration file. Use the configuration template below as a starting point. Replace USERNAME and PASSWORD with the correct credentials.
<Resource name="jdbc/$DATASOURCE_NAME" auth="Container"
type="javax.sql.DataSource"
username="$USERNAME"
password="$PASSWORD"
driverClassName="com.amazon.redshift.jdbc.Driver"
url="jdbc:redshift://$URL:$PORT/$DATABASE_NAME"
maxTotal="20"
maxIdle="10"
accessToUnderlyingConnectionAllowed="true"
validationQuery="SELECT 1"/>
Now define a new schema from the Redshift data source. For details see Set Up an External Schema.
Most queries that would work against a PostgreSQL data source will also work against a Redshift data source.
Of the known differences most are due to limitations of Redshift, not the LabKey SQL dialect, including:
previousnext |
expand allcollapse all |