alibabacloud-migration-lhm-migrate-hive-to-paimon
Installation
SKILL.md
Hive-to-Paimon Data Migration
Verified agent platforms: Claude / Qoder / OpenCode / Codex. Other platforms are not compatibility-tested.
⚠️ This skill performs production data writes and overwrites. Preview every write operation with
--dry-runfirst, and execute only after human review. All output is for reference and must be verified by a human.
Safety Red Lines
- Overwrites are irreversible:
INSERT OVERWRITEclears all data in the target Paimon table;--forcerunsDROP TABLEthen recreates. Before running, confirm the target table is empty, disposable, or already backed up. - Never commit credentials: OSS AK/SK, Spark password, and Metastore password in
config.iniare highly sensitive. Never commit them to Git/SVN. Addconfig.inito.gitignoreand inject credentials via environment variables (see "Credential Security"). - No real-prefix placeholders: Never write example AKs with real prefixes like
LTAI.... Always use<YOUR_AK>/<YOUR_SK>. - Large-cluster protection: The default rclone concurrency of 64 may overwhelm the source HDFS or target OSS. On production clusters, evaluate with low concurrency first (e.g.
--max-parallel 2 --transfers 16) before scaling up. - DLS direct-read boundary:
--direct-readonly applies to OSS-HDFS (DLS) sources. Enabling it on plain HDFS results in unreadable data. - Writes require confirmation: Before running
CREATE TABLE/DROP TABLE/INSERT OVERWRITE/rclone copy, the agent must show the impact and obtain explicit confirmation (see references/agent-rules.md).
Tooling Overview
This skill depends on no external MCP tools; it is implemented via a Python CLI plus external services: