Dataiku connection
This guide explains how to connect Dataiku to an AnalyticDB for PostgreSQL instance for visual analysis.
Prerequisites
-
Ensure an AnalyticDB for PostgreSQL data source is available.
-
Ensure Dataiku is installed. For details, see the official Dataiku documentation.
Limitations
Due to a limitation in Dataiku, you can query an external table directly with a SQL Notebook, but you cannot view it using Import tables to datasets.
Procedure
-
In Dataiku, click Blank project to create a project. For this example, name the project AnalyticDB for PostgreSQL.
-
On the project details page, click +IMPORT YOUR FIRST DATASET.
-
On the Data Source page, in the SQL Statement data source type section, select PostgreSQL. Click create a new connection.
-
At the top of the page, click +NEW CONNECTION and select PostgreSQL from the drop-down list.
-
On the NEW PostgreSQL connection page, configure the following parameters.
Parameter
Description
New connection name
Enter a name for the connection.
Host
The internal endpoint of your AnalyticDB for PostgreSQL instance. You can obtain this endpoint from the Database Connection page in the AnalyticDB for PostgreSQL console.
Port
The port number for your AnalyticDB for PostgreSQL instance. The default is 5432.
Database
The database name for your AnalyticDB for PostgreSQL instance.
User
The database account for your AnalyticDB for PostgreSQL instance.
Password
AnalyticDB for PostgreSQL instance password.
Other parameters
For details on other parameters, see the official Dataiku documentation.
-
After you configure the parameters, click TEST at the bottom of the page. If the connection test is successful, click CREATE.
-
After creating the connection, click Import tables to datasets at the bottom of the page to batch-import tables from the database as datasets. You can then analyze the data. For more information about data analysis, see the official Dataiku documentation.