Download the Amazon Redshift JDBC driver, version 2.1
Amazon Redshift offers drivers for tools that are compatible with the JDBC 4.2 API. The class
name for this driver is com.amazon.redshift.Driver
.
For detailed information about how to install the JDBC driver, reference the JDBC driver libraries, and register the driver class, see the following topics.
For each computer where you use the Amazon Redshift JDBC driver version 2.1, make sure that the Java Runtime Environment (JRE) 8.0 is installed.
If you use the Amazon Redshift JDBC driver for database authentication, make sure that you have Amazon SDK for Java 1.11.118 or later in your Java class path. If you don't have Amazon SDK for Java installed, download the ZIP file with JDBC 4.2–compatible driver and driver dependent libraries for the Amazon SDK:
-
JDBC 4.2–compatible driver version 2.1 and Amazon SDK driver–dependent libraries
In the China (Beijing) Region, use the following link: JDBC 4.2–compatible driver version 2.1 and Amazon SDK driver–dependent libraries This ZIP file contains the JDBC 4.2–compatible driver version 2.1 and Amazon SDK for Java 1.x driver–dependent library files. Unzip the dependent jar files to the same location as the JDBC driver. Only the JDBC driver needs to be in CLASSPATH.
This ZIP file doesn't include the complete Amazon SDK for Java 1.x. However, it includes the Amazon SDK for Java 1.x driver–dependent libraries that are required for Amazon Identity and Access Management (IAM) database authentication.
Use this Amazon Redshift JDBC driver with the Amazon SDK that is required for IAM database authentication.
To install the complete Amazon SDK for Java 1.x, see Amazon SDK for Java 1.x in the Amazon SDK for Java Developer Guide.
-
JDBC 4.2–compatible driver version 2.1 (without the Amazon SDK)
In the China (Beijing) Region, use the following link: JDBC 4.2–compatible driver version 2.1 (without the Amazon SDK)
Review the JDBC driver version 2.1 software license and change log file:
JDBC drivers version 1.2.27.1051 and later support Amazon Redshift stored procedures. For more information, see Creating stored procedures in Amazon Redshift in the Amazon Redshift Database Developer Guide.