Learn how to connect to Amazon Redshift with Exasol and then load data.
To view details about data type mappings or to migrate data, see the Amazon Redshift to Exasol migration script in our GitHub repository.
Amazon Redshift must be reachable from the Exasol system.
The user credentials in the connection must be valid.
Download the compatible JDBC 4.2 driver from the AWS website.
Do the following to configure the driver in EXAoperation:
Redshiftcom.amazon.redshift.jdbc42.Driverjdbc:redshift:To create a connection, run the following statement. Replace the connection string and credentials with the corresponding values for your account.
CREATE OR REPLACE CONNECTION jdbc_connection_1
TO 'jdbc:redshift://example_cluster123.some_region.redshift.amazonaws.com:5439/dev'
USER 'awsuser'
IDENTIFIED BY'some_password';
To check the connection, run the following statement.
import from jdbc at jdbc_connection_1 statement 'select 42';
Use IMPORT to load data from a table or SQL statement using the connection that you created.
[ETL-5] JDBC-Client-Error: Connecting to 'jdbc:redshift://example_cluster123.some_region.redshift.amazonaws.com:5439/dev' as user='awsuser' failed: [Amazon](500150) Error setting/closing connection: Error loading the keystore . (Session: 1622834984232180908)
Ensure that you have selected the Disable Security Manager in EXAoperation as mentioned in Configure driver in EXAoperation.
[ETL-5] JDBC-Client-Error: Connecting to 'jdbc:redshift://example_cluster123.some_region.redshift.amazonaws.com:5439/dev' as user='awsuser' failed: [Amazon](500150) Error setting/closing connection: Connection timed out. (Session: 1622834984232180908)
Check that the security groups on the Redshift side allow your VM/cluster to connect to Redshift.
[ETL-5] JDBC-Client-Error: Connecting to 'jdbc:redshift://example_cluster123.some_region.redshift.amazonaws.com:5439/dev' as user='awsuser' failed: [Amazon](500150) Error setting/closing connection: UnknownHostException. (Session: 1622834984232180908)
Ensure that a DNS server is configured
[ETL-5] JDBC-Client-Error: Connecting to 'jdbc:redshift://example_cluster123.some_region.redshift.amazonaws.com:5439/dev' as user='awsuser' failed: SSL error: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
Add ;ssl=false to the connection string. For example:
jdbc:redshift://example_cluster123.some_region.redshift.amazonaws.com:5439/dev;ssl=false