Associate a Hologres instance with a DataWorks workspace to read, replicate, develop, and analyze data in DataWorks using Hologres as the compute engine. When the association is complete, DataWorks automatically creates a Hologres data source with the same name in the Data Sources list of the workspace.
Prerequisites
Before you begin, make sure you have:
-
A Hologres instance and a database. See Create an instance and Create a database.
-
A DataWorks workspace in the same region as the Hologres instance, with RAM users for data development added as workspace administrators. See Create a workspace.
-
A resource group bound to the workspace with network connectivity to your Hologres instance:
-
Serverless resource group: See Serverless resource groups.
-
Legacy resource group: The exclusive resource groups for integration, scheduling, and services must all have connectivity. See Legacy resource groups.
-
Hologres supports three database permission models: the standard PostgreSQL model (expert model), the schema-level permission model (SLPM), and the simple permission model (SPM). SPM simplifies permission management through the console. If you are setting up a new database, selecting SPM during database creation is the easiest option. See Manage databases.
Associate a Hologres computing resource (Data Studio)
Follow these steps if your workspace uses Data Studio (New Version).
Go to the Computing Resource page
-
Log on to the DataWorks console. Switch to the target region. In the left navigation pane, click More > Management Center. Select the target workspace from the drop-down list and click Go To Management Center.
-
In the left navigation pane, click Computing Resource.
Configure and associate the computing resource
-
Click Associate Computing Resource to open the Associate Computing Resource panel. Set the computing resource type to Hologres.
-
On the Associate Hologres Computing Resource panel, configure the following parameters.
Parameter Description Hologres instance Select your Hologres instance. To create one, click Create in the drop-down list to purchase a Hologres instance. Hologres virtual warehouse Select a virtual warehouse. To create one, click Create in the drop-down list to create a Hologres compute group. Database name Select the database to use. To create one, click Create in the drop-down list to create a database. Default access identity The identity used to run tasks. In the development environment, only Executor is supported. In the production environment, Alibaba Cloud Account, Alibaba Cloud RAM User, Alibaba Cloud RAM Role, and Task Owner are supported. If you log on with an Alibaba Cloud account or a RAM user/role that has the AdministratorAccess policy, you can select any identity. Otherwise, you can only select your own identity. Authentication method Select No Authentication or SSL Authentication. If you select SSL Authentication, you must enable SSL Encryption on the Data Security page of the Hologres instance. When SSL authentication is enabled, the instance cannot be used for data development or periodic scheduling tasks. SSL encryption Required when Authentication method is set to SSL Authentication. Only the require encryption mode is supported. Computing resource instance name Enter a custom name for this computing resource. Tasks use this name to identify which computing resource to run on. -
In the connection configuration section, select the resource group DataWorks uses to run Hologres tasks. Click Test Network Connectivity to verify the resource group can reach your Hologres instance. For details on connectivity options, see Overview of network connection solutions.
-
Click OK.
After the association is complete, DataWorks automatically creates a Hologres data source with the same name in the Data Sources list of the workspace.
Associate a Hologres computing resource (legacy Data Studio)
Follow these steps if your workspace does not use Data Studio (New Version).
Go to the Computing Resource page
-
Log on to the DataWorks console. In the top navigation bar, select the target region. In the left navigation pane, choose Data Development and O&M > Data Development. Select the target workspace from the drop-down list and click Go to Data Development.
-
In the left navigation pane, click
Computing Resource.
Configure and associate the computing resource
-
Click Create Computing Resource. In the Create Computing Resource wizard, select Hologres.
-
Configure the following parameters.
Parameter Description Data source name Enter a custom name for the computing resource. Authentication method Only Alibaba Cloud Account and RAM Role is supported. Alibaba Cloud Account Select Current Alibaba Cloud Account or Another Alibaba Cloud Account. If you select Another Alibaba Cloud Account, also fill in UID of Alibaba Cloud Account and RAM Role. Region The region where your workspace resides. Hologres instance Select your Hologres instance. Database name Select the database to use. Default access identity The identity used to run tasks. In the development environment, only Executor is supported. In the production environment, Alibaba Cloud Account, Alibaba Cloud RAM User, Alibaba Cloud RAM Role, and Task Owner are supported. If you log on with an Alibaba Cloud account or a RAM user/role that has the AdministratorAccess policy, you can select any identity. Otherwise, you can only select your own identity. Authentication method Select No Authentication or SSL Authentication. If you select SSL Authentication, you must enable SSL Encryption on the Data Security page of the Hologres instance. When SSL authentication is enabled, the instance cannot be used for data development or periodic scheduling tasks. SSL encryption Required when Authentication method is set to SSL Authentication. Only the require encryption mode is supported. -
In the connection configuration section, select the resource group DataWorks uses to run Hologres tasks. Click Test Network Connectivity to verify the resource group can reach your Hologres instance. For details, see Overview of network connection solutions.
-
Click Create and Associate Computing Resource with DataStudio.
After the association is complete, DataWorks automatically creates a Hologres data source with the same name in the Data Sources list of the workspace.
Troubleshooting
Instance name already exists
If an instance display name already exists in DataWorks, change the display name and try again.
Invalid database name
Verify the database name is correct and exists in the Hologres instance.
Extra spaces in field values
Check whether any field values contain leading or trailing spaces and remove them.
Insufficient permissions
Verify your account has the required permissions on the Hologres instance and the administrator role in the DataWorks workspace.
What's next
After the association is complete, use the Hologres computing resource for your data development workflows:
-
Development with Hologres SQL — Write and run SQL queries against Hologres directly in Data Studio.
-
Create MaxCompute foreign tables — Access MaxCompute data from Hologres without moving it.
-
Replicate data from MaxCompute to Hologres — Copy MaxCompute tables into Hologres for low-latency queries.
-
Import MaxCompute data to Hologres regularly with DataWorks — Schedule recurring imports using DataWorks pipelines.