All Products
Search
Document Center

DataWorks:CDH Hive node

Last Updated:Mar 26, 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

Before you begin, ensure that you have:

  • An Alibaba Cloud CDH cluster bound to a DataWorks workspace, with the Hive component installed and Hive connection information configured. For more information, see Data Studio: Associate a CDH computing resource.

  • A Hive data source configured in DataWorks that has passed the connectivity test. For more information, see Data Source Management.

  • (RAM users only) Added to the workspace with the Developer or Workspace Administrator role. For more information, see Add members to a workspace.

Important

The Workspace Administrator role has extensive permissions. Grant it with caution. Root account users can skip this step.

Supported resource groups

Run this node type using one of the following resource groups:

Resource groupDescription
Serverless Resource Group (recommended)
Exclusive Resource Group for Scheduling

Create a node

For instructions, see Create a node.

Write task code

Write your Hive SQL in the node editor. To pass values dynamically at runtime, define variables using the ${variable_name} syntax, then assign values to those variables under Scheduling Configuration > Scheduling Parameters.

SHOW TABLES;

SELECT * FROM userinfo;

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

For supported expressions and value sources, see Sources and expressions of scheduling parameters.

Run the node

  1. In the Scheduling Configuration tab, go to the Run Configuration section and configure the following settings:

    SettingWhat to selectNotes
    Compute ResourceThe CDH cluster registered in DataWorksSelect the cluster name you registered when binding the CDH computing resource.
    Resource GroupThe scheduling resource group that passed the connectivity testFor connectivity options, see Network connectivity solutions.
  2. In the toolbar at the top of the node editor, click Run.

What's next