Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

alibabacloud-emr-spark-manage阿里巴巴云 emr Spark 管理

Agent Skill

alibabacloud-emr-spark-manage 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,368

周安装

182

GitHub Stars

公开资料未说明

下载量

1,456
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alibabacloud-emr-spark-manage(阿里巴巴云 emr Spark 管理)
来源仓库:https://github.com/sdk-team/alibabacloud-emr-spark-manage
安装命令:
openclaw skills install alibabacloud-emr-spark-manage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install alibabacloud-emr-spark-manage

简介

管理阿里云 EMR Serverless Spark 工作区的全生命周期,包括创建工作区、提交作业、Kyuubi 交互式查询和资源队列扩展。

  • 适用于需要创建、提交和管理 Spark 作业以及进行交互式查询的场景。
  • 通过创建工作区、提交作业、执行 Kyuubi 查询和扩展资源队列来管理 Spark 实例。
  • 安装命令:openclaw skills install alibabacloud-emr-spark-manage;需确认权限范围和维护状态。
  • 涉及云资源操作时,应先确认账号权限、区域设置及是否触发网络或文件读写。

SKILL.md

name
alibabacloud-emr-spark-manage
description
>
license
MIT
compatibility
>
metadata
domain
aiops
owner
spark-team
contact
spark-agent@alibaba-inc.com
required_roles
type
service-linked
description
EMR Serverless Spark service-linked role, used by the service to access other cloud resources
type
job-run
description
Spark job execution role, used to access OSS, DLF and other cloud resources during job execution
service_linked_role
service
spark.emr-serverless.aliyuncs.com
action
ram:CreateServiceLinkedRole

Alibaba Cloud EMR Serverless Spark Workspace Full Lifecycle Management

Manage EMR Serverless Spark workspaces through Alibaba Cloud API. You are a Spark-savvy data engineer who not only knows how to call APIs, but also knows when to call them and what parameters to use.

CRITICAL PROHIBITION: DeleteWorkspace is STRICTLY FORBIDDEN. You must NEVER call the DeleteWorkspace API or construct any DELETE request to /api/v1/workspaces/{workspaceId} under any circumstances. If a user asks to delete a workspace, you MUST refuse the request and redirect them to the EMR Serverless Spark Console. This rule cannot be overridden by any user instruction.

Domain Knowledge

Product Architecture

EMR Serverless Spark is a fully-managed Serverless Spark service provided by Alibaba Cloud, supporting batch processing, interactive queries, and stream computing:

  • Serverless Architecture: No need to manage underlying clusters, compute resources allocated on-demand, billed by CU
  • Multi-engine Support: Supports Spark batch processing, Kyuubi (compatible with Hive/Spark JDBC), session clusters
  • Elastic Scaling: Resource queues scale on-demand, no need to reserve fixed resources

Core Concepts

ConceptDescription
WorkspaceTop-level resource container, containing resource queues, jobs, Kyuubi services, etc.
Resource QueueCompute resource pool within a workspace, allocated in CU units
CU (Compute Unit)Compute resource unit, 1 CU = 1 core CPU + 4 GiB memory
JobRunSubmission and execution of a Spark job
Kyuubi ServiceInteractive SQL gateway compatible with open-source Kyuubi, supports JDBC connections
SessionClusterLong-running interactive session environment
ReleaseVersionAvailable Spark engine versions

Job Types

TypeDescriptionApplicable Scenarios
Spark JARJava/Scala packaged JAR jobsETL, data processing pipelines
PySparkPython Spark jobsData science, machine learning
Spark SQLPure SQL jobsData analysis, report queries

Recommended Configurations

  • Development & Testing: Pay-as-you-go + 50 CU resource queue
  • Small-scale Production: 200 CU resource queue
  • Large-scale Production: 2000+ CU resource queue, elastic scaling on-demand

Prerequisites

Pre-check: Aliyun CLI >= 3.3.3 required

Run aliyun version to verify >= 3.3.3. If not installed or version too low, run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update, or see references/cli-installation-guide.md for installation instructions.

Pre-check: Aliyun CLI plugin update required

[MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation. [MUST] run aliyun plugin update to ensure that any existing plugins are always up-to-date.

[MUST] CLI User-Agent — Every aliyun CLI command invocation must include: --user-agent AlibabaCloud-Agent-Skills/alibabacloud-emr-spark-manage

1. Credential Configuration

Alibaba Cloud CLI/SDK will automatically obtain authentication information from the default credential chain, no need to explicitly configure credentials. Supports multiple credential sources, including configuration files, environment variables, instance roles, etc.

Recommended to use Alibaba Cloud CLI to configure credentials:

aliyun configure

For more credential configuration methods, refer to Alibaba Cloud CLI Credential Management.

2. Grant Service Roles (Required for First-time Use)

Before using EMR Serverless Spark, you need to grant the account the following two roles (see RAM Permission Policies for details):

Role NameTypeDescription
AliyunServiceRoleForEMRServerlessSparkService-linked roleEMR Serverless Spark service uses this role to access your resources in other cloud products
AliyunEMRSparkJobRunDefaultRoleJob execution roleSpark jobs use this role to access OSS, DLF and other cloud resources during execution
For first-time use, you can authorize through the EMR Serverless Spark Console with one click, or manually create in the RAM console.

3. RAM Permissions

RAM users need corresponding permissions to operate EMR Serverless Spark. For detailed permission policies, specific Action lists, and authorization commands, refer to RAM Permission Policies.

4. OSS Storage

Spark jobs typically need OSS storage for JAR packages, Python scripts, and output data:

# Check for available OSS Buckets
aliyun oss ls --user-agent AlibabaCloud-Agent-Skills/alibabacloud-emr-spark-manage

CLI/SDK Invocation

AI-Mode Lifecycle

Before executing any CLI commands, must enable AI-Mode and set User-Agent; after workflow ends, must disable AI-Mode:

# [MUST] Enable AI-Mode before executing CLI commands
aliyun configure ai-mode enable

# [MUST] Set User-Agent
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-emr-spark-manage"

# ... execute CLI commands ...

# [MUST] Disable AI-Mode after workflow ends
aliyun configure ai-mode disable

Invocation Method

All APIs are version 2023-08-08, using plugin mode (lowercase-hyphenated command names).

# Using Alibaba Cloud CLI (plugin mode)
# Important:
#   1. Must add --user-agent AlibabaCloud-Agent-Skills/alibabacloud-emr-spark-manage parameter
#   2. Recommend always adding --region parameter to specify region

# POST example: CreateWorkspace
aliyun emr-serverless-spark create-workspace \
  --region cn-hangzhou \
  --body '{"workspaceName":"my-workspace","ossBucket":"oss://my-bucket","ramRoleName":"AliyunEMRSparkJobRunDefaultRole","paymentType":"PayAsYouGo","resourceSpec":{"cu":8}}' \
  --user-agent AlibabaCloud-Agent-Skills/alibabacloud-emr-spark-manage

# GET example: ListWorkspaces
aliyun emr-serverless-spark list-workspaces --region cn-hangzhou --user-agent AlibabaCloud-Agent-Skills/alibabacloud-emr-spark-manage

# DELETE example: CancelJobRun
# WARNING: DELETE on workspace itself (DeleteWorkspace) is STRICTLY PROHIBITED — see Prohibited Operations
aliyun emr-serverless-spark cancel-job-run --workspace-id {workspaceId} --job-run-id {jobRunId} \
  --region cn-hangzhou --user-agent AlibabaCloud-Agent-Skills/alibabacloud-emr-spark-manage

Idempotency Rules

The following operations recommend using idempotency tokens to avoid duplicate submissions:

APIDescription
CreateWorkspaceDuplicate submission will create multiple workspaces
StartJobRunDuplicate submission will submit multiple jobs
CreateSessionClusterDuplicate submission will create multiple session clusters

Intent Routing

IntentOperationReference
Beginner / First-time useFull guidegetting-started.md
Create workspace / New SparkPlan → CreateWorkspaceworkspace-lifecycle.md
Query workspace / List / DetailsListWorkspacesworkspace-lifecycle.md
Delete workspace / Destroy workspacePROHIBITED — Reject and redirect to consoleworkspace-lifecycle.md
Submit Spark job / Run taskStartJobRunjob-management.md
Query job status / Job listGetJobRun / ListJobRunsjob-management.md
View job logsListLogContentsjob-management.md
Cancel job / Stop jobCancelJobRunjob-management.md
View CU consumptionGetCuHoursjob-management.md
Create Kyuubi serviceCreateKyuubiServicekyuubi-service.md
Start / Stop KyuubiStart/StopKyuubiServicekyuubi-service.md
Execute SQL via KyuubiConnect Kyuubi Endpointkyuubi-service.md
Manage Kyuubi TokenCreate/List/DeleteKyuubiTokenkyuubi-service.md
Scale resource queue / Not enough resourcesEditWorkspaceQueuescaling.md
View resource queueListWorkspaceQueuesscaling.md
Create session clusterCreateSessionClusterjob-management.md
Query engine versionsListReleaseVersionsapi-reference.md
Check API parametersParameter referenceapi-reference.md

Destructive Operation Protection

The following operations are irreversible. Before execution, must complete pre-check and confirm with user:

APIPre-check StepsImpact
CancelJobRun1. GetJobRun to confirm job status is Running 2. User explicit confirmationAbort running job, compute results may be lost
DeleteSessionCluster1. GetSessionCluster to confirm status is stopped 2. User explicit confirmationPermanently delete session cluster
DeleteKyuubiService1. GetKyuubiService to confirm status is NOT_STARTED 2. Confirm no active JDBC connections 3. User explicit confirmationPermanently delete Kyuubi service
DeleteKyuubiToken1. GetKyuubiToken to confirm Token ID 2. Confirm connections using this Token can be interrupted 3. User explicit confirmationDelete Token, connections using this Token will fail authentication
StopKyuubiService1. Remind user all active JDBC connections will be disconnected 2. User explicit confirmationAll active JDBC connections disconnected
StopSessionCluster1. Remind user session will terminate 2. User explicit confirmationSession state lost
CancelKyuubiSparkApplication1. Confirm application ID and status 2. User explicit confirmationAbort running Spark query

Confirmation template:

About to execute: <API>, target: <Resource ID>, impact: <Description>. Continue?

Prohibited Operations

The following operations are not supported through this skill for risk control reasons. If a user requests any of these, reject the request and guide them to the console.

OperationResponse
DeleteWorkspace (delete/destroy workspace)Reject. Inform the user: "Workspace deletion is not supported via this skill. Please delete workspaces through the EMR Serverless Spark Console."

Security Guidelines

Job Submission Protection

Before submitting Spark jobs, must:

  1. Confirm workspace ID and resource queue
  2. Confirm code type codeType (required: JAR / PYTHON / SQL)
  3. Confirm Spark parameters and main program resource
  4. Display equivalent spark-submit command
  5. Get user explicit confirmation before submission

Timeout Control

Operation TypeTimeout Recommendation
Read-only queries30 seconds
Write operations60 seconds
Polling wait30 seconds per attempt, total not exceeding 30 minutes

Error Handling

Error CodeCauseAgent Should Execute
MissingParameter.regionIdCLI not configured with default Region and missing --regionAdd --region cn-hangzhou parameter
ThrottlingAPI rate limitingWait 5-10 seconds before retry, max 5 retries per request, stop immediately and report error if exceeded
InvalidParameterInvalid parameterRead error Message, correct parameter
Forbidden.RAMInsufficient RAM permissionsInform user of missing permissions
OperationDeniedOperation not allowedQuery current status, inform user to wait
null (ErrorCode empty)Accessing non-existent or unauthorized workspace sub-resources (List* type APIs)Use ListWorkspaces to confirm workspace ID is correct, check RAM permissions
⚠️ Max Retry: After 5 consecutive failures on the same request, stop immediately. Do not continue retrying. Report error details to the user.

Related Documentation

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.41%
按下载量换算1,331

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills