Configuring the JDBC driver for Timestream for LiveAnalytics
Follow the steps below to configure the JDBC driver.
Topics
Timestream for LiveAnalytics JDBC driver JARs
You can obtain the Timestream for LiveAnalytics JDBC driver via direct download or by adding the driver as a Maven dependency.
-
As a direct download:. To directly download the Timestream for LiveAnalytics JDBC driver, complete the following steps:
-
Navigate to https://github.com/awslabs/amazon-timestream-driver-jdbc/releases
-
You can use
amazon-timestream-jdbc-1.0.1-shaded.jar
directly with your business intelligence tools and applications -
Download
amazon-timestream-jdbc-1.0.1-javadoc.jar
to a directory of your choice. -
In the directory where you have downloaded
amazon-timestream-jdbc-1.0.1-javadoc.jar
, run the following command to extract the Javadoc HTML files:jar -xvf amazon-timestream-jdbc-1.0.1-javadoc.jar
-
-
As a Maven dependency: To add the Timestream for LiveAnalytics JDBC driver as a Maven dependency, complete the following steps:
-
Navigate to and open your application's
pom.xml
file in an editor of your choice. -
Add the JDBC driver as a dependency into your application's
pom.xml
file:<!-- https://mvnrepository.com/artifact/software.amazon.timestream/amazon-timestream-jdbc --> <dependency> <groupId>software.amazon.timestream</groupId> <artifactId>amazon-timestream-jdbc</artifactId> <version>1.0.1</version> </dependency>
-
Timestream for LiveAnalytics JDBC driver class and URL format
The driver class for Timestream for LiveAnalytics JDBC driver is:
software.amazon.timestream.jdbc.TimestreamDriver
The Timestream JDBC driver requires the following JDBC URL format:
jdbc:timestream:
To specify database properties through the JDBC URL, use the following URL format:
jdbc:timestream://
Sample application
To help you get started with using Timestream for LiveAnalytics with JDBC, we've created a fully functional sample application in GitHub.
-
Create a database with sample data following the instructions described here.
-
Clone the GitHub repository for the sample application for JDBC
following the instructions from GitHub . -
Follow the instructions in the README
to get started with the sample application.