Connect to Abacus.AI Using JDBC/ODBC

The Abacus.AI platform provides an JDBC/ODBC connector as one of the options for you to attach datasets to your project from your own databases.

Connector Setup

In order to connect to your database, the following information regarding the database is required:

Steps to connect to Azure Databricks (JDBC)

  1. Here's how to configure a connection to data hosted on the Azure Databricks platform. The first step is to set up authentication for the database. For this, navigate to "User Settings" and follow instructions to generate a personal access token within the Databricks platform:

  1. Navigate to the "Compute" tab in order to extract the required information from the respective cluster. Click on "Advanced options" and "JDBC" to get the information.
    Note: Your Database Server URL/IP should not include 'https://'. Only the server hostname or address.

  1. Go to the Abacus.AI Connected Services Dashboard. Click on the "Add New Connector" button at the top right corner of the page.

  1. To set up a new JDBC connector, click on the ODBC/JDBC option.

  1. Fill out all the configuration information described above in this document and hit save, making sure to select the Databricks JDBC driver.

  1. Click on the "Verify" button and wait for the connector to get verified. If there are any errors or exceptions, follow the message to troubleshoot your configuration.

  1. Rename, edit configuration, or delete your connector(s) as you see fit from the Abacus.AI Connected Services Dashboard by clicking on the respective buttons.

Steps to connect to AWS Redshift (ODBC)

  1. Navigate to the "Clusters" tab in order to extract the required information from the respective cluster. Click on "Properties" to get the information.

  1. Go to the Abacus.AI Connected Services Dashboard. Click on the "Add New Connector" button at the top right corner of the page.

  1. To set up a new ODBC connector, click on the ODBC/JDBC option.

  1. Fill out all the configuration information described above in this document and hit save, making sure to select the Redshift ODBC driver.

  1. Click on the "Verify" button and wait for the connector to get verified. If there are any errors or exceptions, follow the message to troubleshoot your configuration.

  1. Rename, edit configuration, or delete your connector(s) as you see fit from the Abacus.AI Connected Services Dashboard by clicking on the respective buttons.

Whitelist an IP Address for an Amazon Redshift Cluster

To whitelist an IP address for your Amazon Redshift cluster, you need to modify the associated security group to allow inbound traffic from that IP address. Follow these steps:

  1. Log in to the AWS Management Console and navigate to the Amazon Redshift dashboard.
  2. Find your cluster by looking for the cluster identifier.
  3. Identify the VPC security groups associated with your cluster. You can find this information in the details pane of your selected cluster.
  4. Navigate to the VPC Dashboard by either searching for "VPC" in the AWS Management Console or by going to the "Security" section in the Redshift dashboard and clicking on the link to the security group.
  5. Select Security Groups from the navigation pane on the left side of the VPC Dashboard.
  6. Find and select the security group that your Redshift cluster is using.
  7. Go to the Inbound Rules tab for the security group.
  8. Edit the inbound rules by clicking on the "Edit inbound rules" button.
  9. Add a new rule with the following settings:
    • Type: Redshift (or Custom TCP if Redshift is not an option)
    • Protocol: TCP
    • Port Range: The port your Redshift cluster is listening on (default is 5439)
    • Source: Enter the IP address you want to whitelist, followed by /32 to indicate a single IP address
  10. Save the rule by clicking on the "Save rules" button.

Steps to connect to Oracle (JDBC)

Oracle has a different approach to database organization compared to some other databases like MySQL or SQL Server. In Oracle, what is often referred to as a "database" in other systems is more akin to a "schema" in Oracle. To connect to an Oracle database schema using the Abacus.AI platform, you should use the schema name as the "database name" in the connection configuration. Here's how to do it:

  1. Obtain the schema name that you have access to and wish to connect to.
  2. When filling out the configuration information for the Oracle database connection on the Abacus.AI platform, use the schema name as the "Database Name".
  3. Ensure that all other required information, such as the database server URL/IP, port, and authentication details, are correctly provided and that the Abacus.AI IP address is whitelisted.

Steps to connect to MS SQL (JDBC/ODBC)

  1. Navigate to your SQL database page in Microsoft Azure:

  1. Click on "Connection strings", then select ODBC and note the server name after tcp:<name>.database.windows.net:

  1. Whitelist the Abacus.AI IPs. Please reach out to Abacus.AI support for the most up-to-date addresses:

  1. While filling the JDBC/ODBC connection:
    1. Choose ODBC Driver 18.
    2. Fill in the server name ending with <server_name>.database.windows.net.
    3. Enter the database name.
    4. Use port 1433.
    5. Select 'Username and Password' as the Authentication Mechanism/
    6. Enter a username with access to the database.
    7. Enter the password for the username.
    8. Click Save

  1. For ODBC Driver 17 and ODBC Driver 18, you can also use the Client ID and Secret of the Microsoft Service Principal as an authentication method:
    • Client ID: The client ID of the service principal, if required to connect to the Azure SQL database.
    • Client Secret: The client secret of the service principal.

Steps to connect to SAP HANA (JDBC/ODBC)

This guide outlines the steps required to gather the necessary connection details from your SAP HANA Cloud instance to establish a JDBC connection.

Prerequisites

Reference: SAP HANA Cloud Administration Guide

To configure SAP HANA connection gather the below details from your instance:

  1. Navigate to your SAP HANA Cloud instance and select the specific instance you wish to connect to.

  1. Go to the Connections section and copy the SQL Endpoint value. This URL is crucial for configuring the Database Server URL in your connection setup.

  1. The database name is also required. If you are unsure which database to connect to, you can use the query shown in the image below to retrieve the database name.

  1. When filling out the connection details in your Abacus.AI SAP HANA setup, follow these steps:
    1. Choose the SAP HANA JDBC Driver.
    2. Database Server URL: Enter the SQL Endpoint value obtained in Step 2, ensuring that you remove the port number from the end of the URL before entering it.
    3. Database Name: Enter the database name identified in Step 3.
    4. Enter the port number.
    5. Select Username and Password as the Authentication Mechanism.
    6. Enter a Database username and password.
    7. Enter the schema name you intend to access.
    8. Click Create to save the configuration.
    9. Once saved, click Verify to test the connection.

Steps to connect to Cloudera Impala JDBC

This guide outlines the steps required to gather the necessary connection details from your Cloudera Impala Warehouse to establish a JDBC connection.

Prerequisites

Reference: Cloudera Setup Guide

To configure Cloudera Impala JDBC connection gather the below details from your instance:

  1. Navigate to your Cloudera Impala Warehouse instance and select the specific instance you wish to connect to.

  2. Click on Actions tab and hit the Copy JDBC Url value. This URL is crucial for configuring the Database Server URL in Abacus.AI connection setup.

  1. When filling out the connection details in your Abacus.AI Cloudera Impala setup, follow these steps:

    1. Choose the Cloudera Impala JDBC Driver.
    2. Database Server URL: Enter the hostname of the database server. This is the portion of the connection string that identifies the server, excluding the port number and any other parameters.

    Example: For a JDBC URL formatted like this, you should only use HOSTNAME

    jdbc:impala://[HOSTNAME]:443/default;AuthMech=3;transportMode=http;...

    1. Enter the database name.
    2. Enter the port number mentioned in your JDBC URL
    3. Select Username and Password as the Authentication Mechanism.
    4. Enter the Workload username and password.
    5. HTTP Path: It can be found within your JDBC URL
    6. SSL Mode: If your URL contains SSL=1 then select the Require option
    7. Click Create to save the configuration.
    8. Once saved, click Verify to test the connection.