AnalyticDB for PostgreSQL is built on the open source Greenplum database. It is compatible with the syntax, interfaces, and ecosystems of both Greenplum and PostgreSQL. This topic describes how to use FineBI to connect to AnalyticDB for PostgreSQL.
Prerequisites
FineBI is downloaded and installed.
An AnalyticDB for PostgreSQL instance is created.
The IP address of the server where FineBI resides is added to a whitelist of the AnalyticDB for PostgreSQL instance.
Usage notes
The first time you connect to AnalyticDB for PostgreSQL, you must download and install the Java Database Connectivity (JDBC) driver.
Procedure
Start the FineBI client.
In the left-side navigation pane, choose .
On the Data Connection tab, click New Data Connection. Select Pivotal Greenplum Database.
On the Data Connection tab, specify parameters such as URL, Username, and Password.
Parameter
Description
Example
Driver
The driver code.
org.postgresql.DriverURL
The connection information of the AnalyticDB for PostgreSQL instance. The URL format varies based on the driver. For more information, see the "Configuration information of the FineBI driver" section of this topic.
NoteYou can view the endpoint on the Basic Information page of the AnalyticDB for PostgreSQL console.
If FineBI is not located in the same zone as the AnalyticDB for PostgreSQL instance, you must use a public endpoint to connect to the instance.
The default port number of AnalyticDB for PostgreSQL is 3432.
jdbc:postgresql://gp-bpxxxxxxxxxxxxxx.gpdb.rds.aliyuncs.com:3432/dbnameCode
The connection code. By default, Automatic is selected.
-
Username
The database account that is used to connect to the AnalyticDB for PostgreSQL instance.
adbpgnamePassword
The password that is used to connect to the AnalyticDB for PostgreSQL instance.
adbpgpasswordTable 1. Configuration information of the FineBI driver
Driver code
URL
Supported database version
org.postgresql.Driverjdbc:postgresql://Endpoint:Port/Database name4.3.9 and 5.0
com.pivotal.jdbc.GreenplumDriverjdbc:pivotal:greenplum://Endpoint:Port;DatabaseName=Database nameClick Test Connection.
NoteIf the connection test fails, you can modify the parameter configuration as prompted.
After the connection test passes, click Save in the upper-right corner.