Setting up a JDBC connection to connect to Amazon Athena - 7.3

Data Integration Job Examples

Version
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2024-02-13

Before you begin

You have the required additional library AthenaJDBC42-2.0.7.jar ready. If not, download the Athena JDBC driver here.

About this task

Follow the procedure below to set up a JDBC connection to connect the Talend Studio Job to Amazon Athena.

Procedure

  1. In the Repository tree view of your Talend Studio, expand the Metadata node, right-click Db Connections and select Create connection.
    The Database connection wizard opens.
  2. Provide the connection name and purpose and click Next.
  3. From the DB Type list, select JDBC.
  4. In the JDBC URL field, provide the JDBC URL details, including your AWS user ID and password.
    jdbc:awsathena://AwsRegion=<AWS Region>;User=<AWS Access Key>;Password=<AWS Secret Key>;S3OutputLocation=<S3 folder>
  5. Install the required addition library.
    1. In the Drivers table, click the [+] button to add a line and click the [...] button to open the Module dialog box.
    2. Select the Install a new module option, click the [...] button to browse to the downloaded jar.
    3. Click the Detect the module install status button, and then click OK to close the dialog box.
  6. Back in the Database connection wizard, click the Select class name button and select the main class of the driver allowing to communicate with Amazon Athena.
  7. Fill in your database user authentication data in the User Id and Password fields.
  8. Click Test connection and then Finish to close the wizard.
  9. In the Repository tree view, right-click the JDBC connection you just created and select Retrieve Schema to retrieve table schema of the connected Amazon Athena service.