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.
In order to connect to your database, the following information regarding the database is required:
- Driver: The specific driver required to connect to the database depending upon the type of database.
- Authentication Mechanism: Based on the authentication method associated with the database, authentication information might be required for configuration. It can be a personal access token, username and password, or no authentication at all. In this example, we'll be using a personal access token.
- Database Server URL/IP: The server hostname's IP address or URL.
- Database Name: The name of the specific database.
- Database Port: The port at which the database server is running.
- HTTP Path: The HTTP path to the specific cluster the database belongs to.
- Authentication Methods: The method by which the server requires user authentication. We support the following methods based on the specific driver:
- Username and Password
- Database Username: The username assigned to access the database. If a personal access token or no authentication is being used, then this can be disregarded.
- Database Password: The password used to access the database. If no authentication method is being used, then this can be disregarded. If a personal access token is being used, then that will act as the password for configuration.
- Personal Access Token
- The personal access token to be used in database authentication if required by the selected authentication mechanism.
- 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:
- 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.
- Go to the Abacus.AI Connected Services Dashboard. Click on the "Add New Connector" button at the top right corner of the page.
- To set up a new JDBC connector, click on the ODBC/JDBC option.
- Fill out all the configuration information described above in this document and hit save, making sure to select the Databricks JDBC driver.
- 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.
- 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.
- Navigate to the "Clusters" tab in order to extract the required information from the respective cluster. Click on "Properties" to get the information.
- Go to the Abacus.AI Connected Services Dashboard. Click on the "Add New Connector" button at the top right corner of the page.
- To set up a new ODBC connector, click on the ODBC/JDBC option.
- Fill out all the configuration information described above in this document and hit save, making sure to select the Redshift ODBC driver.
- 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.
- 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.
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:
- Log in to the AWS Management Console and navigate to the Amazon Redshift dashboard.
- Find your cluster by looking for the cluster identifier.
- Identify the VPC security groups associated with your cluster. You can find this information in the details pane of your selected cluster.
- 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.
- Select Security Groups from the navigation pane on the left side of the VPC Dashboard.
- Find and select the security group that your Redshift cluster is using.
- Go to the Inbound Rules tab for the security group.
- Edit the inbound rules by clicking on the "Edit inbound rules" button.
- 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
- Save the rule by clicking on the "Save rules" button.
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:
- Obtain the schema name that you have access to and wish to connect to.
- When filling out the configuration information for the Oracle database connection on the Abacus.AI platform, use the schema name as the "Database Name".
- 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.
- Navigate to your SQL database page in Microsoft Azure:
- Click on "Connection strings", then select
ODBC
and note the server name after tcp:<name>.database.windows.net
:
- Whitelist the Abacus.AI IPs. Please reach out to Abacus.AI support for the most up-to-date addresses:
- While filling the JDBC/ODBC connection:
- Choose ODBC Driver 18.
- Fill in the server name ending with
<server_name>.database.windows.net
.
- Enter the database name.
- Use port 1433.
- Select 'Username and Password' as the Authentication Mechanism/
- Enter a username with to access the database.
- Enter the password for the username.
- Click
Save