A SelectDB or Doris compute source binds to a Dataphin project and provides the computing resources needed to run compute tasks. When the Dataphin compute engine is set to SelectDB or Doris, features such as compute tasks, ad hoc queries, and scripts are available only after you add a SelectDB or Doris compute source to the project.
Prerequisites
-
The compute engine of Dataphin is set to SelectDB or Doris. For more information, see Initialize the metadata warehouse using SelectDB or Doris as the metadata warehouse engine.
-
A SelectDB or Doris cluster is created. For more information, see Create and manage a SelectDB or Doris cluster.
Procedure
-
In the top menu bar of the Dataphin homepage, choose Planning > Compute Source.
-
On the Compute Source page, click New Compute Source and select SelectDB Compute Source or Doris Compute Source.
-
In the Create SelectDB Compute Source or Create Doris Compute Source dialog box, configure the required parameters.
Parameter
Description
Basic Information
Compute Type
Select SelectDB or Doris.
Compute Source Name
The name can contain Chinese characters, letters, digits, underscores (_), and hyphens (-) and can be up to 64 characters in length.
Configuration Method
Currently, only Reference Specified Cluster is supported. Enter keywords to search for a cluster. After you select a cluster, click View to go to the View SelectDB Cluster or View Doris Cluster page to view the cluster details.
Description (optional)
Enter a brief description of the compute source. The description can be up to 128 characters in length.
Compute Configuration
JDBC URL
Automatically obtained from the selected cluster. This parameter is read-only.
Catalog
Automatically obtained from the selected cluster. If the catalog is empty in the cluster configuration, this parameter is also empty. This parameter is read-only.
Database
Select a database from the selected cluster.
Authentication User
You can select Same As Cluster or Custom. The default value is Same as Cluster. If you select Custom, enter the Username and Password for authentication. Make sure the user has the required database permissions.
Node Resource Group
You can select Do Not Specify Resource Group or Specify Resource Group. The default value is Do Not Specify Resource Group. If you select Specify Resource Group, configure resource groups with different priorities.
-
Click Submit.
After you create a SelectDB or Doris compute source, you can attach it to a project. For more information, see Create a general project.