All Products
Search
Document Center

E-MapReduce:Manage clusters with EMR Agent Skills

Last Updated:Jun 02, 2026

The alibabacloud-emr-cluster-manage skill lets you manage EMR on ECS clusters through natural language in Claude Code or OpenClaw. Supported operations include cluster creation, TASK node scaling, renewal, status queries, and troubleshooting.

Skill overview

alibabacloud-emr-cluster-manage manages the full lifecycle of EMR on ECS clusters through natural language commands.

Capability

Description

Create cluster

Supports Hadoop, data lake, Dataflow, and Custom cluster types.

Scaling

Scale TASK node groups and configure auto scaling rules.

Renewal management

Renew subscription clusters and resource groups.

Status query

Check the status of clusters, node groups, nodes, and service deployments.

Troubleshooting

Investigate creation failures and query operation logs.

Security restrictions

You cannot delete or release clusters with this Skill. These operations must be performed in the console.

Use cases: "Create a Hadoop cluster", "Create a data lake cluster", "We are running out of resources", "Check my cluster", "Renew".

Prerequisites

Install Alibaba Cloud CLI

This skill requires Alibaba Cloud CLI 3.3.1 or later:

# On macOS
brew install aliyun-cli

# Or use the official script
curl -fsSL https://aliyuncli.alicdn.com/aliyun-cli-install.sh | bash

# Verify the version
aliyun version

Configure Alibaba Cloud credentials

# Interactive configuration
aliyun configure
# Enter your AccessKey ID, AccessKey Secret, and default region.

Alternatively, configure them using environment variables:

export ALIBABACLOUD_ACCESS_KEY_ID="your-ak"
export ALIBABACLOUD_ACCESS_KEY_SECRET="your-sk"
export ALIBABACLOUD_REGION_ID="cn-hangzhou"

Ensure RAM permissions

We recommend using a RAM user or role with EMR-related permissions.

Install and use in Claude Code

Method 1: Use the npx skills CLI (Recommended)

Official Alibaba Cloud Skills are hosted at aliyun/alibabacloud-aiops-skills on GitHub. Install with npx skills:

# Install the EMR on ECS cluster management Skill
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-emr-cluster-manage

Method 2: Manual installation

Place the skill directory under .claude/skills/ in your project root:

your-project/
└── .claude/
    └── skills/
        └── alibabacloud-emr-cluster-manage/
            ├── SKILL.md
            └── references/

For global access across projects, install to ~/.claude/skills/.

Usage

After installation, use natural language—the agent automatically matches the appropriate skill:

  • "Create a Hadoop cluster for me."

  • "Create a data lake cluster with 3 CORE nodes."

  • "Check the status of cluster c-xxx."

  • "Scale out the cluster with 2 more TASK nodes."

  • "Renew the cluster for 3 months."

How it works: On startup, Claude Code scans .claude/skills/ and reads the name and description metadata from each SKILL.md. When your request matches a skill description, the agent loads and executes it.

Advanced: Install alibabacloud-find-skills (Optional)

alibabacloud-find-skills is a meta skill that lets the agent search for, browse, and install other Alibaba Cloud Skills on demand.

npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-find-skills

Examples: "Help me find a skill to manage ECS" or "What database-related skills does Alibaba Cloud have?". Requires aliyun CLI >= 3.3.1 and the agentexplorer plugin.

Install and use in OpenClaw

Install OpenClaw

# macOS / Linux
curl -fsSL https://openclaw.ai/install.sh | bash

# Verify the installation (requires Node.js >= 22.0)
openclaw --version

Method 1: Use the npx skills CLI (Recommended)

Install from the official GitHub repository with npx skills:

npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-emr-cluster-manage

Choose project-level or global-level during installation. Verify:

openclaw skills list

Method 2: Manual installation

Copy the skill directory to one of these paths (highest priority first):

Priority

Path

Description

1

<workspace>/skills/

Workspace-level, highest priority

2

<workspace>/.agents/skills/

Project Agent-level

3

~/.agents/skills/

User Agent-level

4

~/.openclaw/skills/

User OpenClaw-level

Usage

Start OpenClaw and interact with natural language:

# Terminal mode
openclaw tui

# Or Web mode
openclaw dashboard

The agent automatically matches the appropriate skill:

  • "Create a Hadoop cluster for me"

  • "Create a data lake cluster with 3 CORE nodes"

  • "List the nodes in cluster c-xxx"

Security recommendation: Install the HITL plugin

Install the Alibaba Cloud HITL (Human-in-the-Loop) plugin to intercept high-risk operations and require manual confirmation:

openclaw plugins install @alicloud/alibabacloud-hitl-claw-plugin

Operations that create or modify cloud resources pause for your confirmation in the terminal before execution.

Platform comparison at a glance

Feature

Claude Code

OpenClaw

Skill installation directory

.claude/skills/ (project-level) or ~/.claude/skills/ (user-level)

<workspace>/skills/ or ~/.openclaw/skills/

Recommended installation method

npx skills add aliyun/alibabacloud-aiops-skills --skill <name>

npx skills add aliyun/alibabacloud-aiops-skills --skill <name>

Skill discovery mechanism

Scans directories on startup and matches based on metadata

Scans directories on startup and matches based on metadata

Interaction mode

Terminal CLI

Terminal TUI or Web Dashboard

HITL security plugin

Not available. Security is managed through platform permission settings.

Supported via @alicloud/alibabacloud-hitl-claw-plugin

FAQ

Q1: Skill does not work after installation

  • Claude Code: Verify the skill directory exists in .claude/skills/ with a SKILL.md file.

  • OpenClaw: Run openclaw skills list to verify that the Skill is loaded.

  • Restart the agent session and try again.

Q2: Skill loads but commands fail

  • Verify that Alibaba Cloud CLI is installed and credentials are configured (aliyun configure list).

  • Confirm your RAM user has EMR permissions.

  • Check that the correct region is specified.

Q3: npx skills installed to the wrong directory

npx skills installs to ~/.agents/skills/ by default, but Claude Code scans ~/.claude/skills/. Create a symlink:

# Create a symbolic link
ln -s ~/.agents/skills/alibabacloud-emr-cluster-manage ~/.claude/skills/

Alternatively, configure a SessionStart Hook in ~/.claude/settings.json to sync automatically.

Q4: How do I update a Skill?

# Check for updates
npx skills check

# Perform the update
npx skills update

Related documentation