Configuring the Adapter for Amazon Athena

How to:

Reference:

Configuring the adapter consists of specifying connection and authentication information for each of the connections you want to establish.

Procedure: How to Configure an Adapter

  1. From the Web Console sidebar, click Connect to Data.

    or

    From the Data Management Console, expand the Adapters folder.

    In the DMC, the Adapters folder opens. In the Web Console, the Adapters page opens showing your configured adapters.

  2. In the Web Console, click the New Datasource button on the menu bar and find the adapter on the drop-down list or, in the DMC, expand the Available folder if it is not already expanded.
    On the Web Console, you can select a category of adapter from the drop-down list or use the search option (magnifying glass) to search for specific characters.
  3. In the DMC, expand the appropriate group folder and the specific adapter folder. The group folder is described in the connection attributes reference.
  4. Right-click the adapter name and/or version and select Configure.

    The Add Adapter to Configuration pane opens.

  5. Enter values for the parameters required by the adapter, as described in the chapter for the specific adapter you want to configure.
  6. Click Configure. The configured adapter is added to the Adapters list in the DMC resources tree or the Configured list in the Web Console.
    In the Web Console, the adapter remains on the Available Adapters list with a check mark to indicate that at least one connection has been configured. You can configure additional connections from either the Configured or Available list by right-clicking the adapter and clicking Add Connection.

Reference: Amazon Athena ODBC Adapter Configuration Settings

The Adapter for Amazon Athena ODBC is under the SQL group folder. The configuration settings for the adapter are:

Connection name

Logical name used to identify this particular set of connection attributes. The default is CON01.

DSN-less

Select this option to provide AWS Region and S3 Output Location in lieu of a DSN.

DSN

The DSN that was configured for your Athena Data Source.

Security

Select Explicit as the authentication method to use when connecting to the database server.

User

Enter the AWS access key as the primary authorization ID.

Password

Enter the AWS secret key as the password associated with the primary authorization ID.

Reference: Amazon Athena JDBC Adapter Configuration Settings

The Adapter for Amazon Athena is under the SQL group folder. The configuration settings for the adapter are:

Connection name

Logical name used to identify this particular set of connection attributes. The default is CON01.

URL

Is the URL to the location of the Amazon Athena JDBC data source.

The following is an example of the URL that is used to connect to your Amazon Athena server:

jdbc:awsathena://connection_URL:?s3_staging_directory 

where:

connection_URL

Is the connection URL obtained by your Amazon Athena administrator.

s3_staging_directory

Is the staging directory obtained by your Amazon Athena administrator.

Security

Select Explicit as the authentication method to use when connecting to the database server.

User

Enter the AWS access key as the primary authorization ID.

Password

Enter the AWS secret key as the password associated with the primary authorization ID.

Driver Name

Enter com.amazonaws.athena.jdbc.AthenaDriver as the name of the JDBC driver.

IBI_CLASSPATH

Defines the additional Java Class directories or full-path jar names which will be available for Java Services. Value may be set by editing the communications file or in the Web Console. Using the Web Console, you can enter one reference per line in the input field. When the file is saved, the entries are converted to a single string using colon (:) delimiters for all platforms. OpenVMS platforms must use UNIX-style conventions for values (for example, /mydisk/myhome/myclasses.jar, rather than mydisk:[myhome]myclasses.jar) when setting values. When editing the file manually, you must maintain the colon delimiter.

Enter the full path to the Athena driver jars, as determined in Preparing the Amazon Athena Environment.

WebFOCUS

Feedback