huawei-cloud-dli-manage
БесплатноБез исполняемых скриптовНе проверенManages Huawei Cloud DLI (Data Lake Insight) full lifecycle operations: compute queue management (create/scale/plan/delete), batch jobs (SQL/Spark submit…
от huaweicloudskill317 установок в других каталогахОб этом скилле
Huawei Cloud DLI Resource Management Skill
Overview
This Skill provides a full-lifecycle operations toolkit for Huawei Cloud DLI
(Data Lake Insight) using the dli service of the hcloud CLI, covering ten capability groups:
- Queue management —
ListQueues,ShowQueue,CreateQueue,DeleteQueue,RunQueueAction(scale), queue plans, CIDR - Batch jobs (SQL/Spark) —
CreateSqlJob,ListSqlJobs,ShowSqlJobStatus/Detail/Progress,CancelSqlJob,ExportSqlJobResult,PreviewSqlJobResult, Spark equivalents +ShowSparkJobLog - Flink stream jobs —
CreateFlinkSqlJob,CreateFlinkJarJob,ListFlinkJobs,ShowFlinkJob,UpdateFlink*,BatchRunFlinkJobs,BatchStopFlinkJobs,BatchDeleteFlinkJobs,ShowFlinkMetric - Database management —
ListDatabases,CreateDatabase,DeleteDatabase,UpdateDatabaseOwner,ListDatabaseUsers - Table management —
ListTables,ShowTable,CreateTable,DeleteTable,UpdateTableOwner,ListPartitions,PreviewTable, table users/privileges - Enhanced connections —
ListEnhancedConnections,Create/Update/DeleteEnhancedConnection, queue binding,CreateConnectivityTask/ShowConnectivityTask - Resource packages —
ListJobResources,ShowJobResource,UploadJar/PythonFile/FileJobResources,DeleteJobResource,UpdateJobResourceOwner - Global variables —
ListGlobalVariables,CreateGlobalVariable,UpdateGlobalVariable,DeleteGlobalVariable; Job templates — SQL/Flink SQL/Spark templates: list, create, update, delete - Privileges & patrol — authorization actions, queue/database/table users, elastic resource pools (CU), quota, agency, catalogs
Important Constraints
| Constraint | Policy |
|---|---|
| High-risk operations | Double confirmation required before: deleting databases (especially --cascade), deleting tables, deleting queues, deleting/cancelling running stream jobs, batch-stop/batch-delete Flink jobs, scaling queues down (scale_in), deleting queue plans (metadata is permanently irrecoverable — verify target and scope before confirming) |
| Business SQL | This Skill performs cloud-side operations only. It never autonomously runs business write/overwrite SQL (INSERT OVERWRITE, DELETE, UPDATE, DROP) against user business tables via CreateSqlJob. SQL submission is allowed only for explicitly user-confirmed, non-destructive statements (e.g. SELECT / metadata SHOW), scoped to inspection or user-authorized tasks |
| Production idle cleanup | Never arbitrarily clean production business metadata. Idle-resource cleanup proposals must be reported and confirmed by the user first |
| Scope | All operations stay within DLI resource management; no changes to OBS data content, no IAM policy changes |
Prerequisites
- hcloud CLI installed and authenticated with a valid AK/SK profile (installation guide and verification: see
references/cli-installation-guide.md). - IAM permissions: DLI read permissions for query operations; DLI admin/write permissions for create/update/delete. See
references/iam-policies.md. - Region: DLI resources are regional; pass
--cli-region={region}on every command. - OBS paths (resource upload / result export): a pre-existing OBS bucket with readable paths, passed as OBS object URLs for
--paths.[N]. - Queue for SQL/Spark jobs: a running SQL or general queue is required to submit jobs; check
ListQueuesfirst.
Workflow
Scenario 1: Daily Resource Patrol (巡检)
ListQueues --with-charge-info -> queue inventory/CU; ListElasticResourcePools + ScaleRecords -> pool CU
ListSqlJobs / ListFlinkJobs -> running & failed jobs; ShowQuota -> CU used/remaining (>80% flag)
ShowDliAgency -> agency state; Output: structured patrol report (inventory + risks + cleanup proposals)
Scenario 2: Batch Job Troubleshooting (批作业故障排查)
ListSqlJobs --job-status=failed / ListSparkJobs --state=failed -> find failures
ShowSqlJobStatus/ShowSqlJobDetail -> reason & logs; (Spark) ShowSparkJobLog -> log tail
ShowSqlJobProgress -> running progress; Output: root-cause report (SQL/parameter/quota/connection)
Scenario 3: Flink Stream Job Operations (流作业运维)
ListFlinkJobs --job_type --status -> jobs; ShowFlinkJob -> detail/restart/checkpoint info
BatchRunFlinkJobs / BatchStopFlinkJobs (--trigger_savepoint) -> start/stop after double confirmation
ShowFlinkMetric -> CU metrics; Output: change snapshot of start/stop actions
Scenario 4: Metadata Governance (库表元数据治理)
ListDatabases / ListTables --with-detail -> inventory; ShowTable -> schema/location/owner
ListPartitions -> partition layout; UpdateTableOwner / UpdateDatabaseOwner -> ownership alignment
DeleteDatabase/DeleteTable -> ONLY with user double confirmation (cascade risk!); Output: change snapshot
Scenario 5: Cross-Source Connection (跨源连接)
ListEnhancedConnections -> inventory + status; CreateConnectivityTask
Установить huawei-cloud-dli-manage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-dli-manage?
Manages Huawei Cloud DLI (Data Lake Insight) full lifecycle operations: compute queue management (create/scale/plan/delete), batch jobs (SQL/Spark submit, cancel, status, logs, result export), Flink stream jobs (submit, start/stop, batch delete, metrics), database and table metadata governance (create/delete/owner/privileges/partitions/preview), enhanced cross-source connections (create/update/delete, queue binding, connectivity checks), resource packages (JAR/Py/File upload), global variables, SQL/Flink/Spark job templates, permission authorization, and CU usage patrol. Produces structured inspection reports and change snapshots, detects over-high CU usage and cross-source connectivity failures. High-risk operations require double confirmation; cloud-side operations only, no autonomous business SQL overwrite.
Как установить скилл huawei-cloud-dli-manage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-dli-manage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic