Create a Databricks compute source
A Databricks 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 Databricks, features such as Databricks_SQL nodes, ad hoc queries, and generic scripts are available only after a Databricks compute source is added to the project.
Prerequisites
-
The compute engine of Dataphin is set to Databricks. For more information, see Set the compute engine of a Dataphin instance to Databricks.
-
A Databricks cluster is created. For more information, see Create and manage a Databricks cluster.
-
You have obtained the schema of the database for the Databricks compute engine.
Procedure
-
In the top navigation bar of the Dataphin home page, choose Planning > Compute Source.
-
On the Compute Source page, click New Compute Source and select Databricks Compute Source.
-
In the Create Compute Source dialog box, configure the parameters.
Parameter
Description
Basic Information Of Compute Source
Compute Type
Select Databricks.
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
Only Reference Specified Cluster is supported. You can enter a keyword to search. After you select a cluster, click View to go to the View Databricks Cluster page and check the cluster details.
Compute Source Description (Optional)
Enter a brief description of the compute source. The description can be up to 128 characters in length.
Compute Configuration
Time Zone
The time zone configured in the referenced cluster. This value cannot be modified.
Server Hostname
Automatically obtained from the selected Databricks cluster. This value cannot be edited.
Catalog
Select a catalog. The available options depend on the selected Databricks cluster.
Schema
Select a schema. The available options depend on the selected Databricks cluster.
NoteEach schema can be bound to only one compute source.
Default HTTP Path For Production Nodes
Select the default HTTP path for production nodes. All HTTP paths of the selected Databricks cluster are listed.
HTTP Path For Other Nodes
Select the HTTP path for other nodes. All HTTP paths of the selected Databricks cluster are listed.
HTTP Path For Priority Nodes (Optional)
You can select Use Default HTTP Path For Production Nodes or Custom.
If you select Custom, you can specify an HTTP path for each priority level. All HTTP paths of the selected Databricks cluster are listed.
-
Click Submit.
After you create a Databricks compute source, you can bind it to a project. For more information, see .