All Products
Search
Document Center

DataWorks:CDH Hive node

Last Updated:Feb 05, 2026

Use a CDH Hive node in DataWorks to run Hive tasks, such as data queries or batch processing jobs, on your deployed CDH cluster. This topic describes how to configure and use a CDH Hive node.

Prerequisites

  • You have created an Alibaba Cloud CDH cluster and bound it to a DataWorks workspace. For more information, see Data Studio: Associate a CDH computing resource.

    Important

    The Hive component is installed on your CDH cluster, and you configured the Hive connection information when you bound the cluster.

  • (Optional) If you are using a RAM user, you must add the user to the workspace and grant them the Developer or Workspace Administrator role. The Workspace Administrator role has extensive permissions and must be granted with caution. For more information about how to add members to a workspace, see Add members to a workspace.

    Note

    If you are using your root account, you can skip this step.

  • You have configured a Hive data source in DataWorks and passed the connectivity test. For more information, see Data Source Management.

Limitations

You can run this type of node by using a Serverless Resource Group (recommended) or an Exclusive Resource Group for Scheduling.

Create a node

For instructions, see Create a node.

Develop node

Write your task code in the SQL editor. You can define variables in the code by using the ${variable_name} format and assign values to them in Scheduling Configuration > Scheduling Parameters. This enables dynamic parameter passing for scheduled runs. For more information about scheduling parameters, see Sources and expressions of scheduling parameters. Example:

SHOW TABLES;

SELECT * FROM userinfo ;
-- You can use this with scheduling parameters.
SELECT '${var}'; 

Debug node

  1. In the Run Configuration section of the Scheduling Configuration tab, configure the Compute Resource and Resource Group.

    1. For Compute Resource, select the name of the CDH cluster that you registered in DataWorks.

    2. For Resource Group, select the scheduling resource group that passed the data source connectivity test. For more information, see Network connectivity solutions.

  2. In the toolbar at the top of the node editor, click Run.

Next steps

  • Node scheduling configuration: To run a node on a recurring schedule, configure its Time Property and related scheduling properties in the Scheduling configuration panel on the right side of the page.

  • Publish a node: To publish a node to the production environment, click the image icon. Only nodes that are published to the production environment are scheduled.

  • Task O&M: After you publish a node, you can monitor its scheduled runs in the O&M Center. For more information, see Getting started with Operation Center.